cleanup/scope
This commit is contained in:
@@ -239,9 +239,6 @@ int RageSoundReader_SpeedChange::Read( char *buf, int iFrames )
|
|||||||
|
|
||||||
while( 1 )
|
while( 1 )
|
||||||
{
|
{
|
||||||
// m_iDataBufferAvailFrames-m_iCorrelatedPos < GetWindowSizeFrames when flushing
|
|
||||||
int iCursorAvail = GetCursorAvail();
|
|
||||||
|
|
||||||
if( m_iDataBufferAvailFrames == 0 && m_fTrailingSpeedRatio == m_fSpeedRatio && m_fSpeedRatio == 1.0f )
|
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
|
/* 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 );
|
return m_pSource->Read( (char *) pBuf, iFrames );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int iCursorAvail = GetCursorAvail();
|
||||||
|
|
||||||
if( iCursorAvail == 0 )
|
if( iCursorAvail == 0 )
|
||||||
{
|
{
|
||||||
int iRet = Step();
|
int iRet = Step();
|
||||||
|
|||||||
Reference in New Issue
Block a user