From e9605e8a8b04c991eb480b73f91442dafebba2bf Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sat, 26 May 2012 12:03:01 +0200 Subject: [PATCH] Use AL_BUFFERS_QUEUED at stream shutdown. --- src/client/sound/snd_al.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/sound/snd_al.c b/src/client/sound/snd_al.c index 588c490e..d397e503 100644 --- a/src/client/sound/snd_al.c +++ b/src/client/sound/snd_al.c @@ -444,7 +444,7 @@ static void S_AL_StreamDie( void ) qalSourceStop(streamSource); // Un-queue any buffers, and delete them - qalGetSourcei( streamSource, AL_BUFFERS_PROCESSED, &numBuffers ); + qalGetSourcei( streamSource, AL_BUFFERS_QUEUED, &numBuffers ); while( numBuffers-- ) { ALuint buffer;