From 485c4bbadce6b6f1619d5f1bc6214b09a66e1178 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 28 May 2021 01:30:18 -0500 Subject: [PATCH] micro fix --- src/engine/platform/gb.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/platform/gb.cpp b/src/engine/platform/gb.cpp index 790dab383..05c44c9e3 100644 --- a/src/engine/platform/gb.cpp +++ b/src/engine/platform/gb.cpp @@ -216,8 +216,9 @@ int DivPlatformGB::dispatch(DivCommand c) { } case DIV_CMD_STD_NOISE_MODE: chan[c.chan].duty=c.value; - if (c.chan==3) { + if (c.chan!=2) { chan[c.chan].freqChanged=true; + rWrite(16+c.chan*5+1,((chan[c.chan].duty&3)<<6)|(63-(parent->getIns(chan[c.chan].ins)->gb.soundLen&63))); } break; case DIV_CMD_PANNING: {