From 9dacc9cc8d466e53d3f946dffc1e3601d1cac120 Mon Sep 17 00:00:00 2001 From: Gaerzi Date: Mon, 24 Feb 2014 05:07:37 +0100 Subject: [PATCH] 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. --- src/oplsynth/opl_mus_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oplsynth/opl_mus_player.cpp b/src/oplsynth/opl_mus_player.cpp index 43a129b14..319eb8319 100644 --- a/src/oplsynth/opl_mus_player.cpp +++ b/src/oplsynth/opl_mus_player.cpp @@ -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); }