From 6d2aa8632c3880947409d15b5f22670309cb8cac Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 3 Jan 2004 04:10:57 +0000 Subject: [PATCH] cleaner shutdown --- stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp index 0b0b962e96..d1baacd88a 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_ALSA9_Software.cpp @@ -43,7 +43,7 @@ void RageSound_ALSA9_Software::MixerThread() // RageTimer UnderrunTest; while(!shutdown) { - while( GetData() ) + while( !shutdown && GetData() ) ; const float delay_ms = 1000 * float(max_writeahead) / samplerate; SDL_Delay( int(delay_ms) / 4 );