add flag to disable duty reset on new note for C64/SID2/SID3
This commit is contained in:
parent
7dd16ee7b1
commit
402ff627ae
11 changed files with 36 additions and 12 deletions
|
|
@ -370,9 +370,6 @@ void DivPlatformSID3::tick(bool sysTick)
|
|||
|
||||
updateEnvelope(i);
|
||||
|
||||
//chan[i].duty = 0x1000;
|
||||
updateDuty(i);
|
||||
|
||||
updateFlags(i, false); //gate off TODO: make it properly?
|
||||
updateFlags(i, true); //gate on
|
||||
chan[i].gate = true;
|
||||
|
|
@ -463,7 +460,11 @@ int DivPlatformSID3::dispatch(DivCommand c) {
|
|||
chan[c.chan].sr=ins->sid3.sr;
|
||||
chan[c.chan].release=ins->c64.r;
|
||||
|
||||
chan[c.chan].duty=ins->c64.duty;
|
||||
if(ins->c64.resetDuty)
|
||||
{
|
||||
chan[c.chan].duty=ins->c64.duty;
|
||||
updateDuty(c.chan);
|
||||
}
|
||||
|
||||
chan[c.chan].sync = ins->c64.oscSync;
|
||||
chan[c.chan].ring = ins->c64.ringMod;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue