MSM6258: clock/rate selection

This commit is contained in:
tildearrow 2022-06-04 17:51:59 -05:00
parent 036bf12b89
commit 05c2fb357f
5 changed files with 119 additions and 44 deletions

View file

@ -1975,7 +1975,21 @@ void DivEngine::registerSystems() {
{"Sample"},
{"PCM"},
{DIV_CH_PCM},
{DIV_INS_AMIGA}
{DIV_INS_AMIGA},
{},
[this](int ch, unsigned char effect, unsigned char effectVal) -> bool {
switch (effect) {
case 0x20: // select rate
dispatchCmd(DivCommand(DIV_CMD_SAMPLE_FREQ,ch,effectVal));
break;
case 0x21: // select clock
dispatchCmd(DivCommand(DIV_CMD_SAMPLE_MODE,ch,effectVal));
break;
default:
return false;
}
return true;
}
);
sysDefs[DIV_SYSTEM_YMZ280B]=new DivSysDef(