The wrong value was used here.

This caused crashes on some files (notably MBELLS from Cosmo and NUBC
from Body Count) in my port of this code to SLADE 3.
This commit is contained in:
Gaerzi 2014-02-24 05:07:37 +01:00
parent 732ee11da1
commit 9dacc9cc8d

View file

@ -267,7 +267,7 @@ bool OPLmusicBlock::ServiceStream (void *buff, int numbytes)
{
for (i = 0; i < io->NumChips; ++i)
{
io->chips[i]->Update(samples1, samplesleft);
io->chips[i]->Update(samples1, numsamples);
}
OffsetSamples(samples1, numsamples << stereoshift);
}