SAA: fix negative octaves

This commit is contained in:
tildearrow 2022-02-03 02:46:49 -05:00
parent 9b83c304e5
commit 0ceec182a0
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ void DivPlatformSAA1099::tick() {
}
if (chan[i].freqChanged || chan[i].keyOn || chan[i].keyOff) {
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,true);
if (chan[i].freq>65535) chan[i].freq=65535;
if (chan[i].freq>=32768) {
chan[i].freqH=7;
} else if (chan[i].freq>=16384) {