cmdStream: fix tremolo pos not reset upon 0

This commit is contained in:
tildearrow 2026-01-10 04:39:28 -05:00
parent bf90505e94
commit f3e52c03f7

View file

@ -200,6 +200,9 @@ bool DivCSPlayer::tick() {
unsigned char param=stream.readC();
chan[i].tremoloDepth=param&15;
chan[i].tremoloRate=param>>4;
if (chan[i].tremoloDepth==0) {
chan[i].tremoloPos=0;
}
chan[i].volSpeed=0;
chan[i].volSpeedTarget=-1;
sendVolume=true;