fix slow RageSoundReader_Resample_Good when m_fRate is -1

This commit is contained in:
Glenn Maynard
2007-01-18 10:10:11 +00:00
parent 8ba265a246
commit 8ae07ca49f
@@ -660,7 +660,7 @@ int RageSoundReader_Resample_Good::Read( char *pBuf_, int iFrames )
int iDownFactor, iUpFactor;
GetFactors( iDownFactor, iUpFactor );
if( m_apResamplers[0]->GetFilled() == 0 && iDownFactor == iUpFactor && m_fRate == 1.0f )
if( m_apResamplers[0]->GetFilled() == 0 && iDownFactor == iUpFactor && GetRate() == 1.0f )
return m_pSource->Read( pBuf_, iFrames );
{