TIA: add 10xx effect for selecting shape
This commit is contained in:
parent
1d5277c27b
commit
0356cf2c7a
|
@ -183,6 +183,11 @@ int DivPlatformTIA::dispatch(DivCommand c) {
|
||||||
chan[c.chan].freqChanged=true;
|
chan[c.chan].freqChanged=true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case DIV_CMD_WAVE:
|
||||||
|
chan[c.chan].shape=c.value&15;
|
||||||
|
rWrite(0x15+c.chan,chan[c.chan].shape);
|
||||||
|
chan[c.chan].freqChanged=true;
|
||||||
|
break;
|
||||||
case DIV_ALWAYS_SET_VOLUME:
|
case DIV_ALWAYS_SET_VOLUME:
|
||||||
return 0;
|
return 0;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -374,6 +374,13 @@ bool DivEngine::perSystemPostEffect(int ch, unsigned char effect, unsigned char
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case DIV_SYSTEM_TIA:
|
||||||
|
switch (effect) {
|
||||||
|
case 0x10: // select waveform
|
||||||
|
dispatchCmd(DivCommand(DIV_CMD_WAVE,ch,effectVal));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue