From 3faec793dbed88b4929e0e297e06ffeb0ea769e8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 23 Dec 2006 03:47:38 +0000 Subject: [PATCH] stop on any error --- stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp index b5eac1ab53..b249ad6773 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp @@ -202,7 +202,7 @@ void RageSoundDriver::DecodeThread() int iWrote = GetDataForSound( *pSound ); if( iWrote == RageSoundReader::WOULD_BLOCK ) break; - if( iWrote == RageSoundReader::END_OF_FILE ) + if( iWrote < 0 ) { /* This sound is finishing. */ pSound->m_State = Sound::STOPPING;