Game Boy: fix volume regression

This commit is contained in:
tildearrow 2022-08-10 23:53:47 -05:00
parent 4b18d0920b
commit 51db06298b
1 changed files with 3 additions and 0 deletions

View File

@ -423,6 +423,9 @@ int DivPlatformGB::dispatch(DivCommand c) {
if (c.chan==2) {
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;
case DIV_CMD_GET_VOLUME:
return chan[c.chan].vol;