From 01bc9b404020f3e66d9ca94a9be9adaff47a5524 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 27 Dec 2006 09:19:50 +0000 Subject: [PATCH] cleanup/scope --- stepmania/src/RageSoundReader_SpeedChange.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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();