From 6cc5a881bca3118d8b6c0526cdb140c8c89a4f3a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 23 Dec 2006 04:06:42 +0000 Subject: [PATCH] cleanup --- stepmania/src/RageSound.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 0eaffd48c9..6f3e5f3d94 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -260,16 +260,14 @@ void RageSound::LoadSoundReader( RageSoundReader *pSound ) /* Get a block of data from the input. */ int RageSound::GetData( char *pBuffer, int iFrames ) { - int iGotFrames = 0; - float fRate = 1.0f; - int iSourceFrame = m_iSourceFrame; - if( iFrames == 0 ) return 0; /* Read data from our source. */ ASSERT( m_pSource ); - iGotFrames = m_pSource->RetriedRead( pBuffer, iFrames, &iSourceFrame, &fRate ); + int iSourceFrame; + float fRate = 1.0f; + int iGotFrames = m_pSource->RetriedRead( pBuffer, iFrames, &iSourceFrame, &fRate ); if( iGotFrames == RageSoundReader::ERROR ) Fail( m_pSource->GetError() );