summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorayuanx <ayuanx@gmail.com>2010-01-13 14:18:13 +0000
committerayuanx <ayuanx@gmail.com>2010-01-13 14:18:13 +0000
commit5aac8a5437a8b3a3df33a10de6b03418358958e1 (patch)
tree31f749d620c3ba1994100b273ba7643b0fb52681 /Source/Core
parent429691ce96edab0bee2d8e111b90b4f12fa4daff (diff)
Fixes Issue 2004
This also mutes the sound when paused in Debug mode. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4825 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/Core.cpp4
-rw-r--r--Source/Core/Core/Src/HW/CPU.cpp3
2 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/Core/Src/Core.cpp b/Source/Core/Core/Src/Core.cpp
index 81eaf8b53a..67260df724 100644
--- a/Source/Core/Core/Src/Core.cpp
+++ b/Source/Core/Core/Src/Core.cpp
@@ -490,13 +490,9 @@ void SetState(EState _State)
break;
case CORE_PAUSE:
CCPU::EnableStepping(true); // Break
- CPluginManager::GetInstance().GetDSP()->DSP_ClearAudioBuffer();
- CPluginManager::GetInstance().EmuStateChange(PLUGIN_EMUSTATE_PAUSE);
break;
case CORE_RUN:
CCPU::EnableStepping(false);
- CPluginManager::GetInstance().GetDSP()->DSP_ClearAudioBuffer();
- CPluginManager::GetInstance().EmuStateChange(PLUGIN_EMUSTATE_PLAY);
break;
default:
PanicAlert("Invalid state");
diff --git a/Source/Core/Core/Src/HW/CPU.cpp b/Source/Core/Core/Src/HW/CPU.cpp
index bdf52370a6..1e1a2bcfc7 100644
--- a/Source/Core/Core/Src/HW/CPU.cpp
+++ b/Source/Core/Core/Src/HW/CPU.cpp
@@ -18,6 +18,7 @@
#include "Common.h"
#include "Thread.h"
+#include "../PluginManager.h"
#include "../PowerPC/PowerPC.h"
#include "../Host.h"
#include "../Core.h"
@@ -117,12 +118,14 @@ void CCPU::EnableStepping(const bool _bStepping)
PowerPC::Pause();
// TODO(ector): why a sleep?
Host_SetDebugMode(true);
+ CPluginManager::GetInstance().EmuStateChange(PLUGIN_EMUSTATE_PAUSE);
}
else
{
Host_SetDebugMode(false);
PowerPC::Start();
m_StepEvent.Set();
+ CPluginManager::GetInstance().EmuStateChange(PLUGIN_EMUSTATE_PLAY);
}
}