From d5f6445a5e56437d148850c6a3287c51baf747e5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 6 Mar 2007 22:39:26 +0000 Subject: [PATCH] fix double-counting reads below 0 --- stepmania/src/RageSoundReader_Extend.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/stepmania/src/RageSoundReader_Extend.cpp b/stepmania/src/RageSoundReader_Extend.cpp index 31d88d8506..c0d6fbdb32 100644 --- a/stepmania/src/RageSoundReader_Extend.cpp +++ b/stepmania/src/RageSoundReader_Extend.cpp @@ -64,8 +64,6 @@ int RageSoundReader_Extend::GetData( float *pBuffer, int iFrames ) if( m_iPositionFrames < 0 ) { iFramesToRead = min( iFramesToRead, -m_iPositionFrames ); - - m_iPositionFrames += iFramesToRead; memset( pBuffer, 0, iFramesToRead * sizeof(float) * this->GetNumChannels() ); return iFramesToRead; }