From e35f48b7a0dde7bb2c333cc9b0b479b12bb951d1 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 19 Dec 2021 00:42:20 -0500 Subject: [PATCH] and MORE bug emulation this time the volume DOES reset back to normal if you issue an off after a 0Axx. fixes pads.dmf --- src/engine/playback.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/playback.cpp b/src/engine/playback.cpp index 139211738..7b5e3dbf9 100644 --- a/src/engine/playback.cpp +++ b/src/engine/playback.cpp @@ -536,6 +536,10 @@ void DivEngine::processRow(int i, bool afterDelay) { chan[i].portaSpeed=-1; } }*/ + if (!chan[i].keyOn && chan[i].volume>chan[i].volMax) { + chan[i].volume=chan[i].volMax; + dispatchCmd(DivCommand(DIV_CMD_VOLUME,i,chan[i].volume>>8)); + } chan[i].keyOn=true; } chan[i].nowYouCanStop=true;