diff --git a/src/client/sound/openal.c b/src/client/sound/openal.c index 0cb9d62c..a17ba164 100644 --- a/src/client/sound/openal.c +++ b/src/client/sound/openal.c @@ -239,7 +239,7 @@ AL_PlayChannel(channel_t *ch) } /* Clamp volume */ - vol = ch->oal_vol + s_volume->value; + vol = ch->oal_vol; if (vol > 1.0f) { @@ -602,7 +602,6 @@ AL_Update(void) /* set listener (player) parameters */ AL_CopyVector(listener_forward, orientation); AL_CopyVector(listener_up, orientation + 3); - qalListenerf(AL_GAIN, s_volume->value); qalListenerf(AL_MAX_GAIN, s_openal_maxgain->value); qalDistanceModel(AL_LINEAR_DISTANCE_CLAMPED); qalListener3f(AL_POSITION, AL_UnpackVector(listener_origin)); diff --git a/src/client/sound/sound.c b/src/client/sound/sound.c index 04b17a34..ccb445b0 100644 --- a/src/client/sound/sound.c +++ b/src/client/sound/sound.c @@ -830,7 +830,6 @@ S_RawSamples(int samples, int rate, int width, #if USE_OPENAL if (sound_started == SS_OAL) { - volume = volume * (s_volume->value); AL_RawSamples(samples, rate, width, channels, data, volume); } else