mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Improved XTra.KrazzY's Mute-On-Pause a bit, so it won't cost any CPU time when it is not used.
Revert old Zelda-TP hack, though it really shouldn't be there... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4684 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -317,10 +317,6 @@ unsigned short DSP_ReadControlRegister()
|
||||
|
||||
void DSP_Update(int cycles)
|
||||
{
|
||||
// Handle muting
|
||||
if(g_bMuted && !*g_dspInitialize.pEmulatorState && soundStream)
|
||||
soundStream->Mute(g_bMuted = false);
|
||||
|
||||
// This is called OFTEN - better not do anything expensive!
|
||||
CDSPHandler::GetInstance().Update(cycles);
|
||||
}
|
||||
@ -372,6 +368,4 @@ void DSP_ClearAudioBuffer()
|
||||
{
|
||||
if (soundStream)
|
||||
soundStream->Clear();
|
||||
if(*g_dspInitialize.pEmulatorState && soundStream && !g_bMuted)
|
||||
soundStream->Mute(g_bMuted = true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user