fix issue with volume macro+slide

This commit is contained in:
tildearrow 2022-01-17 16:23:47 -05:00
parent dde2462025
commit 6884494b5c
9 changed files with 9 additions and 9 deletions

View file

@ -20,7 +20,7 @@ void DivPlatformSMS::tick() {
for (int i=0; i<4; i++) {
chan[i].std.next();
if (chan[i].std.hadVol) {
chan[i].outVol=(chan[i].vol*chan[i].std.vol)>>4;
chan[i].outVol=((chan[i].vol&15)*chan[i].std.vol)>>4;
rWrite(0x90|(i<<5)|(isMuted[i]?15:(15-(chan[i].outVol&15))));
}
if (chan[i].std.hadArp) {