From cf341b39a3ebcce80f06780d96b84ab2dc8d92fe Mon Sep 17 00:00:00 2001 From: cam900 Date: Sun, 14 Jul 2024 11:57:01 +0900 Subject: [PATCH] Fix macro volume multiplier (127 for MultiPCM, 64 for Amiga) --- src/engine/platform/opl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/platform/opl.cpp b/src/engine/platform/opl.cpp index 24b758003..f831d3887 100644 --- a/src/engine/platform/opl.cpp +++ b/src/engine/platform/opl.cpp @@ -1694,7 +1694,7 @@ int DivPlatformOPL::dispatch(DivCommand c) { case DIV_CMD_NOTE_ON: { if (PCM_CHECK(c.chan)) { // OPL4 PCM DivInstrument* ins=parent->getIns(chan[c.chan].ins,DIV_INS_MULTIPCM); - chan[c.chan].macroVolMul=ins->type==DIV_INS_MULTIPCM?64:127; + chan[c.chan].macroVolMul=ins->type==DIV_INS_AMIGA?64:127; if (c.value!=DIV_NOTE_NULL) { chan[c.chan].sample=ins->amiga.getSample(c.value); chan[c.chan].sampleNote=c.value;