This commit is contained in:
Glenn Maynard
2006-12-22 05:54:23 +00:00
parent 4d6829e7bc
commit 3d6811191b
+1 -2
View File
@@ -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] );