mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
C64: fix filter reset not working well
This commit is contained in:
parent
34a68751e1
commit
f75803c3b2
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue