VRC6: fix duty without note

issue #2556
This commit is contained in:
tildearrow 2025-06-11 16:21:37 -05:00
parent 8e470906f6
commit b53fb9fde7

View file

@ -418,6 +418,9 @@ int DivPlatformVRC6::dispatch(DivCommand c) {
case DIV_CMD_STD_NOISE_MODE: case DIV_CMD_STD_NOISE_MODE:
if ((c.chan!=2) && (!chan[c.chan].pcm)) { // pulse if ((c.chan!=2) && (!chan[c.chan].pcm)) { // pulse
chan[c.chan].duty=c.value; chan[c.chan].duty=c.value;
if (!isMuted[c.chan]) { // pulse
chWrite(c.chan,0,(chan[c.chan].outVol&0xf)|((chan[c.chan].duty&7)<<4));
}
} }
break; break;
case DIV_CMD_SAMPLE_MODE: case DIV_CMD_SAMPLE_MODE: