This commit is contained in:
Glenn Maynard
2006-12-27 09:11:57 +00:00
parent 461658edff
commit 6e3673affb
@@ -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. */