From 28fbd5a7b00885e0707a7a4144d3d2ab3227b3af Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 8 Dec 2022 01:51:29 -0500 Subject: [PATCH] SN: fix Nuked-PSG noise issue --- src/engine/platform/sms.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/platform/sms.cpp b/src/engine/platform/sms.cpp index 4126d9a88..c07e80636 100644 --- a/src/engine/platform/sms.cpp +++ b/src/engine/platform/sms.cpp @@ -158,7 +158,6 @@ void DivPlatformSMS::tick(bool sysTick) { } if (chan[i].std.arp.had) { if (!chan[i].inPorta) { - // TODO: check whether this weird octave boundary thing applies to other systems as well // TODO: add compatibility flag. this is horrible. int areYouSerious=parent->calcArp(chan[i].note,chan[i].std.arp.val); while (areYouSerious>0x60) areYouSerious-=12; @@ -428,7 +427,7 @@ void DivPlatformSMS::reset() { YMPSG_Init(&sn_nuked,isRealSN,12,isRealSN?13:15,isRealSN?16383:32767); snNoiseMode=3; rWrite(0,0xe7); - updateSNMode=false; + updateSNMode=true; oldValue=0xff; lastPan=0xff; if (stereo) {