units are samples, not bytes

This commit is contained in:
Glenn Maynard
2006-12-12 02:47:35 +00:00
parent 3e697a10b7
commit 893e9d9e53
+1 -1
View File
@@ -367,7 +367,7 @@ int RageSoundReader_Chain::Read( char *pBuffer, int iFrames )
iMaxFramesRead = max( iMaxFramesRead, iFramesRead );
mix.write( Buffer, iFramesRead * sizeof(int16_t) * pSound->GetNumChannels() );
mix.write( Buffer, iFramesRead * pSound->GetNumChannels() );
++i;
}