Merge pull request #329 from cam900/n163_macro

Minor N163 macro fix
This commit is contained in:
tildearrow 2022-03-30 00:28:01 -05:00 committed by GitHub
commit fb70afe50d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -403,9 +403,11 @@ int DivPlatformN163::dispatch(DivCommand c) {
if (!chan[c.chan].std.hasVol) {
chan[c.chan].outVol=c.value;
chan[c.chan].resVol=chan[c.chan].outVol;
if (!isMuted[c.chan]) {
chan[c.chan].volumeChanged=true;
}
} else {
chan[c.chan].resVol=chan[c.chan].vol;
}
if (!isMuted[c.chan]) {
chan[c.chan].volumeChanged=true;
}
}
break;