Revert "Fix 1701 command for AYPCM"

This reverts commit 3761383f8d.
This commit is contained in:
tildearrow 2022-10-03 01:23:43 -05:00
parent 3761383f8d
commit b23fdb4b3d
3 changed files with 4 additions and 12 deletions

View File

@ -441,14 +441,12 @@ int DivPlatformAY8910::dispatch(DivCommand c) {
}
chan[c.chan].dac.pos=0;
chan[c.chan].dac.period=0;
chan[c.chan].dac.rate=parent->getSample(chan[c.chan].dac.sample)->rate;
chan[c.chan].dac.rate=parent->getSample(chan[c.chan].dac.sample)->rate*2048;
if (dumpWrites) {
rWrite(0x08+c.chan,0);
addWrite(0xffff0001+(c.chan<<8),chan[c.chan].dac.rate);
}
chan[c.chan].dac.furnaceDAC=false;
chan[c.chan].active=true;
//chan[c.chan].keyOn=true;
}
chan[c.chan].curPSGMode.dac=chan[c.chan].nextPSGMode.dac;
break;

View File

@ -442,14 +442,12 @@ int DivPlatformAY8930::dispatch(DivCommand c) {
}
chan[c.chan].dac.pos=0;
chan[c.chan].dac.period=0;
chan[c.chan].dac.rate=parent->getSample(chan[c.chan].dac.sample)->rate;
chan[c.chan].dac.rate=parent->getSample(chan[c.chan].dac.sample)->rate*4096;
if (dumpWrites) {
rWrite(0x08+c.chan,0);
addWrite(0xffff0001+(c.chan<<8),chan[c.chan].dac.rate);
}
chan[c.chan].dac.furnaceDAC=false;
chan[c.chan].active=true;
//chan[c.chan].keyOn=true;
}
chan[c.chan].curPSGMode.dac=chan[c.chan].nextPSGMode.dac;
break;

View File

@ -422,10 +422,6 @@ void DivEngine::registerSystems() {
// Common effect handler maps
EffectHandlerMap ayPreEffectHandlerMap={
{0x17, {DIV_CMD_SAMPLE_MODE, "17xx: Toggle PCM mode"}},
};
EffectHandlerMap ayPostEffectHandlerMap={
{0x20, {DIV_CMD_STD_NOISE_MODE, "20xx: Set channel mode (bit 0: square; bit 1: noise; bit 2: envelope)"}},
{0x21, {DIV_CMD_STD_NOISE_FREQ, "21xx: Set noise frequency (0 to 1F)"}},
@ -775,7 +771,7 @@ void DivEngine::registerSystems() {
{DIV_CH_PULSE, DIV_CH_PULSE, DIV_CH_PULSE},
{DIV_INS_AY, DIV_INS_AY, DIV_INS_AY},
{},
ayPreEffectHandlerMap,
{},
ayPostEffectHandlerMap
);
@ -855,7 +851,7 @@ void DivEngine::registerSystems() {
{DIV_CH_PULSE, DIV_CH_PULSE, DIV_CH_PULSE},
{DIV_INS_AY8930, DIV_INS_AY8930, DIV_INS_AY8930},
{},
ayPreEffectHandlerMap,
{},
ay8930PostEffectHandlerMap
);