SetPlayerBalance -> GetPlayerBalance

This commit is contained in:
Glenn Maynard
2006-12-09 23:51:08 +00:00
parent 204d081b09
commit e141795020
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -717,13 +717,13 @@ float GameSoundManager::GetPlayLatency() const
return SOUNDMAN->GetPlayLatency();
}
void GameSoundManager::SetPlayerBalance( PlayerNumber pn, RageSoundParams &params )
float GameSoundManager::GetPlayerBalance( PlayerNumber pn )
{
/* 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;
return (pn == PLAYER_1)? -1.0f:1.0f;
else
params.m_Balance = 0;
return 0;
}