OPLL: fix volume setting

This commit is contained in:
tildearrow 2022-03-02 03:35:30 -05:00
parent f95d38521e
commit 0114523c96
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ int DivPlatformOPLL::dispatch(DivCommand c) {
if (!chan[c.chan].std.hasVol) {
chan[c.chan].outVol=c.value;
}
if (c.chan>=6 || properDrums) {
if (c.chan>=6 && properDrums) {
drumVol[c.chan-6]=15-chan[c.chan].outVol;
rWrite(0x36,drumVol[0]);
rWrite(0x37,drumVol[1]|(drumVol[4]<<4));