cmdStream: fix tremolo pos not reset upon 0
This commit is contained in:
parent
bf90505e94
commit
f3e52c03f7
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue