Virtual Boy: fix modulation
This commit is contained in:
parent
8e64ecd23a
commit
3038f65fab
|
@ -317,12 +317,12 @@ int DivPlatformVB::dispatch(DivCommand c) {
|
|||
break;
|
||||
case DIV_CMD_FDS_MOD_DEPTH: // set modulation
|
||||
if (c.chan!=4) break;
|
||||
modulation=(c.value<<4)&15;
|
||||
modulation=(c.value&15)<<4;
|
||||
modType=true;
|
||||
chWrite(4,0x07,modulation);
|
||||
if (modulation!=0) {
|
||||
chan[c.chan].envHigh&=~0x70;
|
||||
chan[c.chan].envHigh|=0x40|((c.value&15)<<4);
|
||||
chan[c.chan].envHigh|=0x40|(c.value&0xf0);
|
||||
} else {
|
||||
chan[c.chan].envHigh&=~0x70;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue