Megadrive savestates, pt.3: missing sound (dac) channel after savestate load

This commit is contained in:
dinkc64 2014-07-30 21:18:56 +00:00
parent d907a106e9
commit fc837ef953
2 changed files with 2 additions and 3 deletions

View File

@ -396,9 +396,8 @@ void BurnYM2612Scan(INT32 nAction, INT32* pnMin)
if (!DebugSnd_YM2612Initted) bprintf(PRINT_ERROR, _T("BurnYM2612Scan called without init\n"));
#endif
BurnTimerScan(nAction, pnMin);
if (nAction & ACB_DRIVER_DATA) {
BurnTimerScan(nAction, pnMin);
SCAN_VAR(nYM2612Position);
}
}

View File

@ -4339,7 +4339,7 @@ static void YM2612_postload(void)
{
/* DAC data & port */
FM2612[num].dacout = ((int)FM2612[num].REGS[0x2a] - 0x80) << 6; /* level unknown */
FM2612[num].dacen = FM2612[num].REGS[0x2d] & 0x80;
FM2612[num].dacen = FM2612[num].REGS[0x2b] & 0x80;
/* OPN registers */
/* DT / MULTI , TL , KS / AR , AMON / DR , SR , SL / RR , SSG-EG */
for(r=0x30;r<0x9e;r++)