mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 23:13:01 +00:00
Game Boy: fix volume regression
This commit is contained in:
parent
4b18d0920b
commit
51db06298b
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue