X1-010: fix env slides in low latency mode

This commit is contained in:
tildearrow 2025-03-22 02:05:24 -05:00
parent bdc10b2ca0
commit 76cdc66e05

View file

@ -509,6 +509,7 @@ void DivPlatformX1_010::tick(bool sysTick) {
if (chan[i].keyOff) chan[i].keyOff=false; if (chan[i].keyOff) chan[i].keyOff=false;
chan[i].freqChanged=false; chan[i].freqChanged=false;
} }
if (sysTick) {
if (chan[i].env.slide!=0) { if (chan[i].env.slide!=0) {
chan[i].env.slidefrac+=chan[i].env.slide; chan[i].env.slidefrac+=chan[i].env.slide;
while (chan[i].env.slidefrac>0xf) { while (chan[i].env.slidefrac>0xf) {
@ -531,6 +532,7 @@ void DivPlatformX1_010::tick(bool sysTick) {
} }
} }
} }
}
} }
int DivPlatformX1_010::dispatch(DivCommand c) { int DivPlatformX1_010::dispatch(DivCommand c) {