SoundUnit: max cutoff 16383

This commit is contained in:
tildearrow 2022-04-27 18:03:24 -05:00
parent 3306e853d1
commit 410a509d73
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ void DivPlatformSoundUnit::tick(bool sysTick) {
chan[i].freqChanged=true;
}
if (chan[i].std.ex1.had) {
chan[i].cutoff=chan[i].std.ex1.val;
chan[i].cutoff=chan[i].std.ex1.val&16383;
chWrite(i,0x06,chan[i].cutoff&0xff);
chWrite(i,0x07,chan[i].cutoff>>8);
}

View file

@ -2837,7 +2837,7 @@ void FurnaceGUI::drawInsEdit() {
ex2Max=4095;
}
if (ins->type==DIV_INS_SU) {
ex1Max=65535;
ex1Max=16383;
ex2Max=255;
}
if (ins->type==DIV_INS_SAA1099) ex1Max=8;