mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-31 20:11:29 +00:00
fix #46
This commit is contained in:
parent
f5b71e35b1
commit
bc32809ecb
2 changed files with 8 additions and 6 deletions
|
@ -207,11 +207,13 @@ int DivPlatformAY8910::dispatch(DivCommand c) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case DIV_CMD_STD_NOISE_MODE:
|
case DIV_CMD_STD_NOISE_MODE:
|
||||||
chan[c.chan].psgMode=(c.value+1)&7;
|
if (c.value<16) {
|
||||||
if (isMuted[c.chan]) {
|
chan[c.chan].psgMode=(c.value+1)&7;
|
||||||
rWrite(0x08+c.chan,0);
|
if (isMuted[c.chan]) {
|
||||||
} else if (chan[c.chan].active) {
|
rWrite(0x08+c.chan,0);
|
||||||
rWrite(0x08+c.chan,(chan[c.chan].outVol&15)|((chan[c.chan].psgMode&4)<<2));
|
} else if (chan[c.chan].active) {
|
||||||
|
rWrite(0x08+c.chan,(chan[c.chan].outVol&15)|((chan[c.chan].psgMode&4)<<2));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DIV_CMD_STD_NOISE_FREQ:
|
case DIV_CMD_STD_NOISE_FREQ:
|
||||||
|
|
|
@ -354,7 +354,7 @@ bool DivEngine::perSystemPostEffect(int ch, unsigned char effect, unsigned char
|
||||||
case DIV_SYSTEM_AY8930:
|
case DIV_SYSTEM_AY8930:
|
||||||
switch (effect) {
|
switch (effect) {
|
||||||
case 0x12: // duty on 8930
|
case 0x12: // duty on 8930
|
||||||
dispatchCmd(DivCommand(DIV_CMD_STD_NOISE_MODE,ch,0x10+effectVal));
|
dispatchCmd(DivCommand(DIV_CMD_STD_NOISE_MODE,ch,0x10+(effectVal&15)));
|
||||||
break;
|
break;
|
||||||
case 0x20: // mode
|
case 0x20: // mode
|
||||||
dispatchCmd(DivCommand(DIV_CMD_STD_NOISE_MODE,ch,effectVal&15));
|
dispatchCmd(DivCommand(DIV_CMD_STD_NOISE_MODE,ch,effectVal&15));
|
||||||
|
|
Loading…
Reference in a new issue