Stop the audio mixing when stepping in the debugger.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1960 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2009-01-20 18:42:01 +00:00
parent e7e19bbfe8
commit 1dcd036b9e
3 changed files with 8 additions and 1 deletions

View File

@ -330,6 +330,7 @@ THREAD_RETURN EmuThread(void *pArg)
dspInit.pDebuggerBreak = Callback_DebuggerBreak;
dspInit.pGenerateDSPInterrupt = Callback_DSPInterrupt;
dspInit.pGetAudioStreaming = AudioInterface::Callback_GetStreaming;
dspInit.pEmulatorState = (int *)&PowerPC::state;
Plugins.GetDSP()->Initialize((void *)&dspInit);
// Load and Init PadPlugin

View File

@ -19,7 +19,7 @@ typedef unsigned int (*TAudioGetStreaming)(short* _pDestBuffer, unsigned int
typedef struct
{
void* hWnd;
void *hWnd;
TARAM_Read_U8 pARAM_Read_U8;
TGetMemoryPointer pGetMemoryPointer;
TGetARAMPointer pGetARAMPointer;
@ -28,6 +28,7 @@ typedef struct
TDebuggerBreak pDebuggerBreak;
TGenerateDSPInt pGenerateDSPInterrupt;
TAudioGetStreaming pGetAudioStreaming;
int *pEmulatorState;
} DSPInitialize;

View File

@ -58,6 +58,11 @@ void Mixer(short *buffer, int numSamples, int bits, int rate, int channels)
// silence
memset(buffer, 0, numSamples * 2 * sizeof(short));
if (g_dspInitialize.pEmulatorState) {
if (*g_dspInitialize.pEmulatorState != 0)
return;
}
// first get the DTK Music
if (g_Config.m_EnableDTKMusic)
{