mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00:00
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
This commit is contained in:
parent
429691ce96
commit
5aac8a5437
5 changed files with 10 additions and 9 deletions
|
@ -192,6 +192,7 @@ void DoState(unsigned char **ptr, int mode)
|
|||
|
||||
void EmuStateChange(PLUGIN_EMUSTATE newState)
|
||||
{
|
||||
DSP_ClearAudioBuffer((newState == PLUGIN_EMUSTATE_PLAY) ? false : true);
|
||||
}
|
||||
|
||||
void DllDebugger(HWND _hParent, bool Show)
|
||||
|
@ -400,9 +401,9 @@ void DSP_SendAIBuffer(unsigned int address, unsigned int num_samples)
|
|||
soundStream->Update();
|
||||
}
|
||||
|
||||
void DSP_ClearAudioBuffer()
|
||||
void DSP_ClearAudioBuffer(bool mute)
|
||||
{
|
||||
if (soundStream)
|
||||
soundStream->Clear((*g_dspInitialize.pEmulatorState) ? true : false);
|
||||
soundStream->Clear(mute);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue