working on fixing up extra loads when entering play mode in the editor

This commit is contained in:
Glenn Maynard
2005-01-15 01:28:29 +00:00
parent 36445d1e1b
commit 3a9b2f7f4b
8 changed files with 70 additions and 46 deletions
+9
View File
@@ -609,6 +609,15 @@ float GameSoundManager::GetPlayLatency() const
return SOUNDMAN->GetPlayLatency();
}
void GameSoundManager::SetPlayerBalance( PlayerNumber pn, RageSoundParams &params )
{
/* If two players are active, play sounds on each players' side. */
if( GAMESTATE->GetNumPlayersEnabled() == 2 )
params.m_Balance = (pn == PLAYER_1)? -1.0f:1.0f;
else
params.m_Balance = 0;
}
/*
* Copyright (c) 2003-2004 Glenn Maynard
* All rights reserved.