C64: fix filter reset not working well

This commit is contained in:
tildearrow 2022-02-01 03:16:03 -05:00
parent 34a68751e1
commit f75803c3b2

View file

@ -249,9 +249,11 @@ int DivPlatformC64::dispatch(DivCommand c) {
case DIV_CMD_C64_FILTER_RESET:
if (c.value&15) {
DivInstrument* ins=parent->getIns(chan[c.chan].ins);
if (ins->c64.initFilter) {
filtCut=ins->c64.cut;
updateFilter();
}
}
chan[c.chan].resetFilter=c.value>>4;
break;
case DIV_CMD_C64_DUTY_RESET:
@ -342,7 +344,7 @@ void DivPlatformC64::reset() {
filtControl=0;
filtRes=0;
filtCut=0;
filtCut=2047;
resetTime=1;
vol=15;
}