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

@ -44,7 +44,7 @@ void DivPlatformYM2610::tick() {
for (int i=4; i<7; i++) {
chan[i].std.next();
if (chan[i].std.hadVol) {
chan[i].outVol=chan[i].std.vol-(15-chan[i].vol);
chan[i].outVol=chan[i].std.vol-(15-(chan[i].vol&15));
if (chan[i].outVol<0) chan[i].outVol=0;
if (isMuted[i]) {
rWrite(0x04+i,0);