From e67d270f2a6eda546dc316d31ff82a4a660fd4d8 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 3 Dec 2005 16:36:45 +0000 Subject: [PATCH] * Same as last revision, but I didn't forget to save this time --- code/client/snd_openal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c index 4f6e197d..cd266d0d 100644 --- a/code/client/snd_openal.c +++ b/code/client/snd_openal.c @@ -1135,19 +1135,19 @@ void S_AL_StreamUpdate( void ) // Start the streamSource playing if necessary qalGetSourcei( streamSource, AL_BUFFERS_QUEUED, &numBuffers ); - // If it's stopped, release the streamSource qalGetSourcei(streamSource, AL_SOURCE_STATE, &state); if(state == AL_STOPPED) { streamPlaying = qfalse; - /*qalSourceStop(streamSource);*/ + + // If there are no buffers queued up, release the streamSource if( !numBuffers ) S_AL_FreeStreamChannel( ); } if( !streamPlaying && numBuffers ) { - qalSourcePlay(streamSource); + qalSourcePlay( streamSource ); streamPlaying = qtrue; } }