Game Boy: fix 10xx turning wave channel on

when it's off
This commit is contained in:
tildearrow 2023-07-07 02:25:32 -05:00
parent f841025ce6
commit aececf352f
1 changed files with 3 additions and 1 deletions

View File

@ -466,7 +466,9 @@ int DivPlatformGB::dispatch(DivCommand c) {
if (c.chan!=2) break;
chan[c.chan].wave=c.value;
ws.changeWave1(chan[c.chan].wave);
chan[c.chan].keyOn=true;
if (chan[c.chan].active) {
chan[c.chan].keyOn=true;
}
break;
case DIV_CMD_NOTE_PORTA: {
int destFreq=NOTE_PERIODIC(c.value2);