From 3d6811191b61165f9aaa6718c0e4eba652d6f0c4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 22 Dec 2006 05:54:23 +0000 Subject: [PATCH] simplify --- stepmania/src/RageSoundReader_Chain.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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] );