mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-25 22:15:14 +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);
|
||||
if (chan[i].keyOff || chan[i].keyOn) {
|
||||
rWrite8(0x03+i*16,ctrl&~0x80); // force keyoff first
|
||||
}
|
||||
if (!chan[i].std.vol.had) {
|
||||
chan[i].outVol=chan[i].vol;
|
||||
writeOutVol(i);
|
||||
}
|
||||
chan[i].keyOn=false;
|
||||
if (chan[i].keyOff) {
|
||||
|
|
Loading…
Reference in a new issue