From 3deabcbe2fc7b26cf49f3c75fe022146d44a3f64 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 22 Dec 2006 21:30:14 +0000 Subject: [PATCH] handle WOULD_BLOCK --- stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp index e1dfb86a8f..862937c02e 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp @@ -234,6 +234,8 @@ void RageSound_Generic_Software::DecodeThread() } int iWrote = GetDataForSound( *pSound ); + if( iWrote == RageSoundReader::WOULD_BLOCK ) + break; if( iWrote == RageSoundReader::END_OF_FILE ) { /* This sound is finishing. */