mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-25 14:05:12 +00:00
NDS: a couple fixes
- don't reset phase on duty or pitch change - don't set volume in freqChanged
This commit is contained in:
parent
42ccba822c
commit
39c109fbc5
1 changed files with 3 additions and 5 deletions
|
@ -239,11 +239,9 @@ void DivPlatformNDS::tick(bool sysTick) {
|
|||
if (chan[i].freq<0) chan[i].freq=0;
|
||||
if (chan[i].freq>65535) chan[i].freq=65535;
|
||||
ctrl=(chan[i].active?0xe8:0)|(chan[i].duty&7);
|
||||
rWrite8(0x03+i*16,ctrl&~0x80); // force keyoff first
|
||||
}
|
||||
if (!chan[i].std.vol.had) {
|
||||
chan[i].outVol=chan[i].vol;
|
||||
writeOutVol(i);
|
||||
if (chan[i].keyOff || chan[i].keyOn) {
|
||||
rWrite8(0x03+i*16,ctrl&~0x80); // force keyoff first
|
||||
}
|
||||
}
|
||||
chan[i].keyOn=false;
|
||||
if (chan[i].keyOff) {
|
||||
|
|
Loading…
Reference in a new issue