From 9cae54fbb88a4b0b495154a71282e67094399936 Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Fri, 3 Apr 2009 12:21:02 +0000 Subject: [PATCH] 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 --- .../Plugins/Plugin_DSP_LLE-testing/Src/gdsp_interpreter.cpp | 3 +++ Source/Plugins/Plugin_DSP_LLE-testing/Src/main.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_DSP_LLE-testing/Src/gdsp_interpreter.cpp b/Source/Plugins/Plugin_DSP_LLE-testing/Src/gdsp_interpreter.cpp index 91e10325e8..d45f181671 100644 --- a/Source/Plugins/Plugin_DSP_LLE-testing/Src/gdsp_interpreter.cpp +++ b/Source/Plugins/Plugin_DSP_LLE-testing/Src/gdsp_interpreter.cpp @@ -312,6 +312,9 @@ bool gdsp_run() while (!CR_HALT) { gdsp_step(); + + if(!gdsp_running) + break; } gdsp_running = false; diff --git a/Source/Plugins/Plugin_DSP_LLE-testing/Src/main.cpp b/Source/Plugins/Plugin_DSP_LLE-testing/Src/main.cpp index 31dc509f62..1a7b279f48 100644 --- a/Source/Plugins/Plugin_DSP_LLE-testing/Src/main.cpp +++ b/Source/Plugins/Plugin_DSP_LLE-testing/Src/main.cpp @@ -258,14 +258,14 @@ void Initialize(void *init) void DSP_StopSoundStream() { + gdsp_stop(); + bIsRunning = false; delete g_hDSPThread; g_hDSPThread = NULL; } void Shutdown(void) { - bIsRunning = false; - gdsp_stop(); AudioCommon::ShutdownSoundStream(); }