Fix for Toaplan samples hack and savestates, and loading samples status

This commit is contained in:
dinkc64 2014-04-04 13:59:47 +00:00
parent 5e282e6c13
commit f7bf100293
4 changed files with 59 additions and 6 deletions

View File

@ -178,6 +178,11 @@ static INT32 DrvScan(INT32 nAction,INT32 *pnMin)
SekScan(nAction); // scan 68000 states
ToaScanGP9001(nAction, pnMin);
#ifdef TOAPLAN_SOUND_SAMPLES_HACK
BurnSampleScan(nAction, pnMin);
#endif
ToaRecalcPalette = 1;
bDrawScreen = true; // get background back ?
}
return 0;
@ -198,7 +203,7 @@ static INT32 LoadRoms()
static void StopAllSamples()
{
for (INT32 i = 0x00; i <= 79; i++) {
BurnSampleStop(i);
BurnSampleStop(i);
}
}
@ -610,8 +615,12 @@ static INT32 DrvInit()
ToaPalSrc = RamPal;
ToaPalInit();
#ifdef TOAPLAN_SOUND_SAMPLES_HACK
BurnUpdateProgress(0.0, _T("Loading samples..."), 0);
BurnSampleInit(0);
BurnSampleSetAllRoutesAllSamples(1.00, BURN_SND_ROUTE_BOTH);
#endif
bDrawScreen = true;

View File

@ -808,8 +808,12 @@ static INT32 DrvInit()
// BurnYM3812Init(28000000 / 8, &toaplan1FMIRQHandler, &toaplan1SynchroniseStream, 0);
// BurnYM3812SetRoute(BURN_SND_YM3812_ROUTE, 1.00, BURN_SND_ROUTE_BOTH);
#ifdef TOAPLAN_SOUND_SAMPLES_HACK
BurnUpdateProgress(0.0, _T("Loading samples..."), 0);
BurnSampleInit(0);
BurnSampleSetAllRoutesAllSamples(0.60, BURN_SND_ROUTE_BOTH);
#endif
bDrawScreen = true;
@ -977,9 +981,24 @@ static INT32 DrvScan(INT32 nAction, INT32* pnMin)
SekScan(nAction);
// BurnYM3812Scan(nAction, pnMin);
#ifdef TOAPLAN_SOUND_SAMPLES_HACK
BurnSampleScan(nAction, pnMin);
SCAN_VAR(FadeoutReady);
SCAN_VAR(FadeoutStop);
SCAN_VAR(Playing1);
SCAN_VAR(Playing2);
SCAN_VAR(Play1);
SCAN_VAR(Counter1);
SCAN_VAR(Vol1);
SCAN_VAR(Wait);
SCAN_VAR(Start);
SCAN_VAR(Start2);
#endif
SCAN_VAR(nCyclesDone);
SCAN_VAR(nCyclesDone);
ToaRecalcPalette = 1;
bDrawScreen = true; // get background back ?
}
return 0;

View File

@ -313,7 +313,13 @@ static INT32 DrvScan(INT32 nAction,INT32 *pnMin)
SekScan(nAction); // scan 68000 states
ToaScanGP9001(nAction, pnMin);
}
#ifdef TOAPLAN_SOUND_SAMPLES_HACK
BurnSampleScan(nAction, pnMin);
#endif
ToaRecalcPalette = 1;
bDrawScreen = true; // get background back ?
}
return 0;
}
@ -600,8 +606,12 @@ static INT32 DrvInit()
ToaPalSrc = RamPal;
ToaPalInit();
#ifdef TOAPLAN_SOUND_SAMPLES_HACK
BurnUpdateProgress(0.0, _T("Loading samples..."), 0);
BurnSampleInit(0);
BurnSampleSetAllRoutesAllSamples(1.00, BURN_SND_ROUTE_BOTH);
#endif
bDrawScreen = true;

View File

@ -693,8 +693,12 @@ static INT32 DrvInit()
// BurnYM3812Init(28000000 / 8, &toaplan1FMIRQHandler, &toaplan1SynchroniseStream, 0);
// BurnYM3812SetRoute(BURN_SND_YM3812_ROUTE, 1.00, BURN_SND_ROUTE_BOTH);
#ifdef TOAPLAN_SOUND_SAMPLES_HACK
BurnUpdateProgress(0.0, _T("Loading samples..."), 0);
BurnSampleInit(0);
BurnSampleSetAllRoutesAllSamples(0.60, BURN_SND_ROUTE_BOTH);
#endif
bDrawScreen = true;
@ -846,12 +850,23 @@ static INT32 DrvScan(INT32 nAction, INT32* pnMin)
SekScan(nAction);
// BurnYM3812Scan(nAction, pnMin);
#ifdef TOAPLAN_SOUND_SAMPLES_HACK
BurnSampleScan(nAction, pnMin);
SCAN_VAR(FadeoutReady);
SCAN_VAR(FadeoutStop);
SCAN_VAR(Playing1);
SCAN_VAR(Playing2);
SCAN_VAR(Play1);
SCAN_VAR(Counter1);
SCAN_VAR(Vol1);
#endif
SCAN_VAR(nCyclesDone);
SCAN_VAR(vimana_credits);
SCAN_VAR(vimana_latch);
SCAN_VAR(vimana_latch);
ToaRecalcPalette = 1;
bDrawScreen = true; // get background back ?
}
return 0;