SoundUnit: fix 4xxx not working

This commit is contained in:
tildearrow 2022-08-25 01:34:21 -05:00
parent 96b3ccab8a
commit fc5b26c49a
2 changed files with 2 additions and 2 deletions

View file

@ -357,7 +357,7 @@ int DivPlatformSoundUnit::dispatch(DivCommand c) {
writeControlUpper(c.chan);
break;
case DIV_CMD_C64_FINE_CUTOFF:
chan[c.chan].baseCutoff=c.value;
chan[c.chan].baseCutoff=c.value*4;
if (!chan[c.chan].std.ex1.has) {
chan[c.chan].cutoff=chan[c.chan].baseCutoff;
chWrite(c.chan,0x06,chan[c.chan].cutoff&0xff);