mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 10:32:40 +00:00
fix
This commit is contained in:
parent
50b314bd77
commit
847bb046f6
1 changed files with 4 additions and 4 deletions
|
@ -240,17 +240,17 @@ void DivPlatformC64::tick(bool sysTick) {
|
|||
}
|
||||
|
||||
if (chan[i].std.ex6.had) {
|
||||
chan[i].decay = chan[i].std.ex5.val & 15;
|
||||
rWrite(i * 7 + 6, (chan[i].sustain << 4) | (chan[i].release));
|
||||
chan[i].decay = chan[i].std.ex6.val & 15;
|
||||
rWrite(i * 7 + 5, (chan[i].attack << 4) | (chan[i].decay));
|
||||
}
|
||||
|
||||
if (chan[i].std.ex7.had) {
|
||||
chan[i].sustain = chan[i].std.ex6.val & 15;
|
||||
chan[i].sustain = chan[i].std.ex7.val & 15;
|
||||
rWrite(i * 7 + 6, (chan[i].sustain << 4) | (chan[i].release));
|
||||
}
|
||||
|
||||
if (chan[i].std.ex8.had) {
|
||||
chan[i].release = chan[i].std.ex6.val & 15;
|
||||
chan[i].release = chan[i].std.ex8.val & 15;
|
||||
rWrite(i * 7 + 6, (chan[i].sustain << 4) | (chan[i].release));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue