Game Boy: fix porta regression

This commit is contained in:
tildearrow 2022-10-07 23:37:56 -05:00
parent 55c97c9529
commit 5726ffc740
1 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,9 @@ void DivPlatformGB::tick(bool sysTick) {
if (chan[i].baseFreq>255) chan[i].baseFreq=255;
if (chan[i].baseFreq<0) chan[i].baseFreq=0;
} else {
chan[i].baseFreq=NOTE_PERIODIC(parent->calcArp(chan[i].note,chan[i].std.arp.val,24));
if (!chan[i].inPorta) {
chan[i].baseFreq=NOTE_PERIODIC(parent->calcArp(chan[i].note,chan[i].std.arp.val,24));
}
}
chan[i].freqChanged=true;
}