fix wave synth ignoring wave set in wave macro

when wave did not change

issue #1194
This commit is contained in:
tildearrow 2023-07-03 22:49:59 -05:00
parent 5c07ecb52c
commit 7e6ffd7e12
2 changed files with 2 additions and 1 deletions

View File

@ -207,7 +207,7 @@ void DivPlatformN163::tick(bool sysTick) {
}
}
if (chan[i].std.wave.had) {
if (chan[i].wave!=chan[i].std.wave.val) {
if (chan[i].wave!=chan[i].std.wave.val || chan[i].ws.activeChanged()) {
chan[i].wave=chan[i].std.wave.val;
chan[i].ws.changeWave1(chan[i].wave);
if (chan[i].waveMode&0x2) {

View File

@ -27,6 +27,7 @@ bool DivWaveSynth::activeChanged() {
activeChangedB=false;
return true;
}
if (first) return true;
return false;
}