From 659dd69454cf7553e0549e8dfabbddaa65478ec1 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Sat, 25 Jan 2003 18:02:39 +0000 Subject: [PATCH] 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 --- sc2/src/sc2code/libs/sound/openal/sound.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/libs/sound/openal/sound.c b/sc2/src/sc2code/libs/sound/openal/sound.c index c510f70f6..ab29087d7 100644 --- a/sc2/src/sc2code/libs/sound/openal/sound.c +++ b/sc2/src/sc2code/libs/sound/openal/sound.c @@ -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); }