PCE: fix phase reset macro when anti-click is on

This commit is contained in:
tildearrow 2022-08-06 00:38:24 -05:00
parent 6ec9cceb09
commit 8a7d352ec6
1 changed files with 4 additions and 0 deletions

View File

@ -233,6 +233,10 @@ void DivPlatformPCE::tick(bool sysTick) {
}
chan[i].freqChanged=true;
}
if (chan[i].std.phaseReset.had && chan[i].std.phaseReset.val==1) {
chan[i].antiClickWavePos=0;
chan[i].antiClickPeriodCount=0;
}
if (chan[i].active) {
if (chan[i].ws.tick() || (chan[i].std.phaseReset.had && chan[i].std.phaseReset.val==1) || chan[i].deferredWaveUpdate) {
updateWave(i);