diff --git a/stepmania/src/RageSoundReader_Chain.cpp b/stepmania/src/RageSoundReader_Chain.cpp index 9692ad01ae..4993a22c9a 100644 --- a/stepmania/src/RageSoundReader_Chain.cpp +++ b/stepmania/src/RageSoundReader_Chain.cpp @@ -356,8 +356,7 @@ int RageSoundReader_Chain::Read( char *pBuffer, int iFrames ) { RageSoundReader *pSound = m_apActiveSounds[i]->pSound; ASSERT( pSound->GetNumChannels() == m_iChannels ); // guaranteed by ActivateSound and Finish - int iSamples = min( iFrames * pSound->GetNumChannels(), ARRAYLEN(Buffer) ); - int iFramesRead = pSound->Read( (char *) Buffer, iSamples/pSound->GetNumChannels() ); + int iFramesRead = pSound->Read( (char *) Buffer, iFrames ); if( iFramesRead < 0 ) { ReleaseSound( m_apActiveSounds[i] );