From 595eaa0ee98e2474fafe07f8464623505f245612 Mon Sep 17 00:00:00 2001 From: Scott Brooks Date: Mon, 6 Jul 2009 01:24:57 +0000 Subject: [PATCH] Done kill a stream when we cant hear it anymore, just mute it --- reaction/code/client/snd_openal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reaction/code/client/snd_openal.c b/reaction/code/client/snd_openal.c index 5087b726..0564243f 100644 --- a/reaction/code/client/snd_openal.c +++ b/reaction/code/client/snd_openal.c @@ -1199,9 +1199,10 @@ void S_AL_SrcUpdate( void ) qalSourcei(curSource->alSource, AL_SOURCE_RELATIVE, AL_FALSE); qalSourcef(curSource->alSource, AL_ROLLOFF_FACTOR, s_alRolloff->value); } + qalSourcef(curSource->alSource, AL_GAIN, curSource->curGain); + } else { + qalSourcef(curSource->alSource, AL_GAIN, 0.0f ); } - else - S_AL_SrcKill( i ); continue; }