fix slow RageSoundReader_Resample_Good when m_fRate is -1
This commit is contained in:
@@ -660,7 +660,7 @@ int RageSoundReader_Resample_Good::Read( char *pBuf_, int iFrames )
|
|||||||
int iDownFactor, iUpFactor;
|
int iDownFactor, iUpFactor;
|
||||||
GetFactors( 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 );
|
return m_pSource->Read( pBuf_, iFrames );
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user