Pausing now works in LLE-Testing

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2926 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-04-08 12:37:15 +00:00
parent 33cd584b38
commit a2855dcf2d
2 changed files with 11 additions and 5 deletions

View File

@ -311,6 +311,10 @@ bool gdsp_run()
while (!cr_halt)
{
// Are we running?
if(*g_dspInitialize.pEmulatorState)
break;
gdsp_step();
if (!gdsp_running)

View File

@ -225,8 +225,10 @@ void Initialize(void *init)
PanicAlert("Failed loading DSP COEF from " DSP_COEF_FILE);
}
if (!bCanWork)
return; // TODO: Don't let it work
if (!bCanWork) {
gdsp_shutdown();
return;
}
bIsRunning = true;
@ -356,8 +358,8 @@ void DSP_SendAIBuffer(unsigned int address, int sample_rate)
// so each sample now triggers the sound stream)
// TODO: think about this.
static int counter = 0;
counter++;
if ((counter & 31) == 0 && soundStream)
//static int counter = 0;
//counter++;
if (/*(counter & 31) == 0 &&*/ soundStream)
soundStream->Update();
}