fix double-counting reads below 0
This commit is contained in:
@@ -64,8 +64,6 @@ int RageSoundReader_Extend::GetData( float *pBuffer, int iFrames )
|
||||
if( m_iPositionFrames < 0 )
|
||||
{
|
||||
iFramesToRead = min( iFramesToRead, -m_iPositionFrames );
|
||||
|
||||
m_iPositionFrames += iFramesToRead;
|
||||
memset( pBuffer, 0, iFramesToRead * sizeof(float) * this->GetNumChannels() );
|
||||
return iFramesToRead;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user