mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-04 20:05:05 +00:00
PCE: fix phase reset macro when anti-click is on
This commit is contained in:
parent
6ec9cceb09
commit
8a7d352ec6
1 changed files with 4 additions and 0 deletions
|
@ -233,6 +233,10 @@ void DivPlatformPCE::tick(bool sysTick) {
|
||||||
}
|
}
|
||||||
chan[i].freqChanged=true;
|
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].active) {
|
||||||
if (chan[i].ws.tick() || (chan[i].std.phaseReset.had && chan[i].std.phaseReset.val==1) || chan[i].deferredWaveUpdate) {
|
if (chan[i].ws.tick() || (chan[i].std.phaseReset.had && chan[i].std.phaseReset.val==1) || chan[i].deferredWaveUpdate) {
|
||||||
updateWave(i);
|
updateWave(i);
|
||||||
|
|
Loading…
Reference in a new issue