Fixed obvious bug with sfx & speech volume control
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@578 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -196,13 +196,13 @@ void SetSFXVolume (float volume)
|
||||
int i;
|
||||
for (i = FIRST_SFX_SOURCE; i <= LAST_SFX_SOURCE; ++i)
|
||||
{
|
||||
alSourcef (soundSource[i].handle, AL_GAIN, sfxVolumeScale);
|
||||
alSourcef (soundSource[i].handle, AL_GAIN, volume);
|
||||
}
|
||||
}
|
||||
|
||||
void SetSpeechVolume (float volume)
|
||||
{
|
||||
alSourcef (soundSource[SPEECH_SOURCE].handle, AL_GAIN, speechVolumeScale);
|
||||
alSourcef (soundSource[SPEECH_SOURCE].handle, AL_GAIN, volume);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user