mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 13:05:11 +00:00
Virtual Boy: more mod table work
This commit is contained in:
parent
8b87905304
commit
79f1b350ae
1 changed files with 2 additions and 2 deletions
|
@ -310,12 +310,12 @@ int DivPlatformVB::dispatch(DivCommand c) {
|
|||
break;
|
||||
case DIV_CMD_FDS_MOD_DEPTH: // set modulation
|
||||
if (c.chan!=4) break;
|
||||
modulation=c.value;
|
||||
modulation=(c.value<<4)&15;
|
||||
modType=true;
|
||||
chWrite(4,0x07,modulation);
|
||||
if (modulation!=0) {
|
||||
chan[c.chan].envHigh&=~0x70;
|
||||
chan[c.chan].envHigh|=0x70;
|
||||
chan[c.chan].envHigh|=0x40|((c.value&15)<<4);
|
||||
} else {
|
||||
chan[c.chan].envHigh&=~0x70;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue