mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 02:51:24 +00:00
C64: solve one ADSR bug
set decay to 0 if sustain is 15
This commit is contained in:
parent
51a89adb3d
commit
e394b5ca5a
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ int DivPlatformC64::dispatch(DivCommand c) {
|
|||
if (chan[c.chan].insChanged) {
|
||||
chan[c.chan].wave=(ins->c64.noiseOn<<3)|(ins->c64.pulseOn<<2)|(ins->c64.sawOn<<1)|(ins->c64.triOn);
|
||||
chan[c.chan].attack=ins->c64.a;
|
||||
chan[c.chan].decay=ins->c64.d;
|
||||
chan[c.chan].decay=(ins->c64.s==15)?0:ins->c64.d;
|
||||
chan[c.chan].sustain=ins->c64.s;
|
||||
chan[c.chan].release=ins->c64.r;
|
||||
chan[c.chan].ring=ins->c64.ringMod;
|
||||
|
|
Loading…
Reference in a new issue