LLE-testing now stops on pressing the stop button.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2847 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-04-03 12:21:02 +00:00
parent c33db95bf5
commit 9cae54fbb8
2 changed files with 5 additions and 2 deletions

View File

@ -312,6 +312,9 @@ bool gdsp_run()
while (!CR_HALT) while (!CR_HALT)
{ {
gdsp_step(); gdsp_step();
if(!gdsp_running)
break;
} }
gdsp_running = false; gdsp_running = false;

View File

@ -258,14 +258,14 @@ void Initialize(void *init)
void DSP_StopSoundStream() void DSP_StopSoundStream()
{ {
gdsp_stop();
bIsRunning = false;
delete g_hDSPThread; delete g_hDSPThread;
g_hDSPThread = NULL; g_hDSPThread = NULL;
} }
void Shutdown(void) void Shutdown(void)
{ {
bIsRunning = false;
gdsp_stop();
AudioCommon::ShutdownSoundStream(); AudioCommon::ShutdownSoundStream();
} }