From 6e3673affbb3fbb9e1b11dd801ce68ae2b72397f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 27 Dec 2006 09:11:57 +0000 Subject: [PATCH] simplify --- stepmania/src/RageSoundReader_SpeedChange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/RageSoundReader_SpeedChange.cpp b/stepmania/src/RageSoundReader_SpeedChange.cpp index 8397e9b47e..8fbb39bbc4 100644 --- a/stepmania/src/RageSoundReader_SpeedChange.cpp +++ b/stepmania/src/RageSoundReader_SpeedChange.cpp @@ -243,7 +243,7 @@ int RageSoundReader_SpeedChange::Read( char *buf, int iFrames ) // m_iDataBufferAvailFrames-m_iCorrelatedPos < GetWindowSizeFrames when flushing int iCursorAvail = GetCursorAvail(); - if( iCursorAvail == 0 && m_fTrailingSpeedRatio == m_fSpeedRatio && GetWindowSizeFrames() == m_iDeltaFrames ) + if( iCursorAvail == 0 && m_fTrailingSpeedRatio == m_fSpeedRatio && m_fSpeedRatio == 1.0f ) { /* Fast path: the buffer is empty, and we're not scaling the audio. Read directly * into the output buffer, to eliminate memory and copying overhead. */