From 88dea72cd721b219c24efabec399eafde6ef37ca Mon Sep 17 00:00:00 2001 From: tma Date: Sat, 3 Dec 2005 16:36:45 +0000 Subject: * Same as last revision, but I didn't forget to save this time git-svn-id: svn://svn.icculus.org/quake3/trunk@408 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/snd_openal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'code/client/snd_openal.c') diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c index 4f6e197..cd266d0 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; } } -- cgit v1.2.3