cleanup; handle different numbers of channels

This commit is contained in:
Glenn Maynard
2006-12-22 05:36:50 +00:00
parent 5bb87d4eff
commit 3127f812dd
+1 -1
View File
@@ -351,7 +351,7 @@ int RageSoundReader_Chain::Read( char *pBuffer, int iFrames )
RageSoundMixBuffer mix;
/* Read iFrames from each sound. */
int16_t Buffer[2048];
iFrames = min( iFrames, 1024 );
iFrames = min( iFrames, (int) (ARRAYLEN(Buffer) / m_iChannels) );
int iMaxFramesRead = 0;
for( unsigned i = 0; i < m_apActiveSounds.size(); )
{