Game Boy: fix volume regression

This commit is contained in:
tildearrow 2022-08-10 23:53:47 -05:00
parent 4b18d0920b
commit 51db06298b

View file

@ -423,6 +423,9 @@ int DivPlatformGB::dispatch(DivCommand c) {
if (c.chan==2) { if (c.chan==2) {
rWrite(16+c.chan*5+2,gbVolMap[chan[c.chan].outVol]); rWrite(16+c.chan*5+2,gbVolMap[chan[c.chan].outVol]);
} }
if (!chan[c.chan].softEnv) {
chan[c.chan].envVol=chan[c.chan].vol;
}
break; break;
case DIV_CMD_GET_VOLUME: case DIV_CMD_GET_VOLUME:
return chan[c.chan].vol; return chan[c.chan].vol;