From 6eba483cbae11b27a680ea7665bf11d25be275d4 Mon Sep 17 00:00:00 2001 From: cam900 Date: Wed, 30 Mar 2022 08:28:38 +0900 Subject: [PATCH] Minor N163 macro fix --- src/engine/platform/n163.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/engine/platform/n163.cpp b/src/engine/platform/n163.cpp index 97abe1024..f48583a42 100644 --- a/src/engine/platform/n163.cpp +++ b/src/engine/platform/n163.cpp @@ -403,9 +403,11 @@ int DivPlatformN163::dispatch(DivCommand c) { if (!chan[c.chan].std.hasVol) { chan[c.chan].outVol=c.value; chan[c.chan].resVol=chan[c.chan].outVol; - if (!isMuted[c.chan]) { - chan[c.chan].volumeChanged=true; - } + } else { + chan[c.chan].resVol=chan[c.chan].vol; + } + if (!isMuted[c.chan]) { + chan[c.chan].volumeChanged=true; } } break;