From ce0308b23421e023081c6cae738a7681ae2cb271 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 23 Dec 2006 03:49:06 +0000 Subject: [PATCH] return errors --- stepmania/src/RageSound.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 0ed1b91bb0..38e23fe1c1 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -272,18 +272,11 @@ int RageSound::GetData( char *pBuffer, int iFrames ) iGotFrames = m_pSource->RetriedRead( pBuffer, iFrames, &iSourceFrame, &fRate ); if( iGotFrames == RageSoundReader::ERROR ) - { Fail( m_pSource->GetError() ); - /* Pretend we got EOF. */ - return RageSoundReader::END_OF_FILE; - } - if( iGotFrames < 0 ) return iGotFrames; - ASSERT_M( iGotFrames >= 0, ssprintf("%i", iGotFrames) ); // unhandled error condition - if( m_pSource->GetNumChannels() == 1 ) RageSoundUtil::ConvertMonoToStereoInPlace( (int16_t *) pBuffer, iGotFrames );