diff --git a/stepmania/src/RageSoundReader_SpeedChange.cpp b/stepmania/src/RageSoundReader_SpeedChange.cpp index 49fa946f18..b5bdcbeb93 100644 --- a/stepmania/src/RageSoundReader_SpeedChange.cpp +++ b/stepmania/src/RageSoundReader_SpeedChange.cpp @@ -239,9 +239,6 @@ int RageSoundReader_SpeedChange::Read( char *buf, int iFrames ) while( 1 ) { - // m_iDataBufferAvailFrames-m_iCorrelatedPos < GetWindowSizeFrames when flushing - int iCursorAvail = GetCursorAvail(); - if( m_iDataBufferAvailFrames == 0 && m_fTrailingSpeedRatio == m_fSpeedRatio && m_fSpeedRatio == 1.0f ) { /* Fast path: the buffer is empty, and we're not scaling the audio. Read directly @@ -249,6 +246,8 @@ int RageSoundReader_SpeedChange::Read( char *buf, int iFrames ) return m_pSource->Read( (char *) pBuf, iFrames ); } + int iCursorAvail = GetCursorAvail(); + if( iCursorAvail == 0 ) { int iRet = Step();