Fix sounds not being written into the mix buffer.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user