Fix sounds not being written into the mix buffer.

This commit is contained in:
Steve Checkoway
2007-12-15 23:22:57 +00:00
parent 4873e924d7
commit 9514f31666
+1 -1
View File
@@ -369,7 +369,7 @@ int RageSoundReader_Chain::Read( float *pBuffer, int iFrames )
}
mix.SetWriteOffset( iFramesRead * pSound->GetNumChannels() );
mix.write( Buffer, iFramesRead * pSound->GetNumChannels() );
mix.write( Buffer, iGotFrames * pSound->GetNumChannels() );
iFramesRead += iGotFrames;
}