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:
parent
33cd584b38
commit
a2855dcf2d
|
@ -311,6 +311,10 @@ bool gdsp_run()
|
|||
|
||||
while (!cr_halt)
|
||||
{
|
||||
// Are we running?
|
||||
if(*g_dspInitialize.pEmulatorState)
|
||||
break;
|
||||
|
||||
gdsp_step();
|
||||
|
||||
if (!gdsp_running)
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue