From 45771c8614ed8ce9edb70f6b97fbe35d4c5c362f Mon Sep 17 00:00:00 2001 From: luigi2us Date: Mon, 6 Jul 2009 12:21:27 +0000 Subject: [PATCH] Uncomment what was accidentally commented out. Sorry. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3692 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.cpp index a05099f0bb..451c169601 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda.cpp @@ -91,9 +91,9 @@ CUCode_Zelda::~CUCode_Zelda() void CUCode_Zelda::Update(int cycles) { -// if (!m_rMailHandler.IsEmpty()) -// g_dspInitialize.pGenerateDSPInterrupt(); - if (m_bSyncCmdPending && (m_CurBuffer == m_NumBuffers) && (m_rMailHandler.IsEmpty())) + if (!m_rMailHandler.IsEmpty()) + g_dspInitialize.pGenerateDSPInterrupt(); +/* if (m_bSyncCmdPending && (m_CurBuffer == m_NumBuffers) && (m_rMailHandler.IsEmpty())) { m_rMailHandler.PushMail(DSP_FRAME_END); g_dspInitialize.pGenerateDSPInterrupt(); @@ -103,7 +103,7 @@ void CUCode_Zelda::Update(int cycles) soundStream->Update(); //do it in this thread to avoid sync problems m_bSyncCmdPending = false; - } + }*/ } void CUCode_Zelda::HandleMail(u32 _uMail) @@ -153,14 +153,14 @@ void CUCode_Zelda::HandleMail(u32 _uMail) if (m_CurBuffer == m_NumBuffers) { - //m_rMailHandler.PushMail(DSP_FRAME_END); + m_rMailHandler.PushMail(DSP_FRAME_END); //g_dspInitialize.pGenerateDSPInterrupt(); - // soundStream->GetMixer()->SetHLEReady(true); - // DEBUG_LOG(DSPHLE, "Update the SoundThread to be in sync"); - // soundStream->Update(); //do it in this thread to avoid sync problems + soundStream->GetMixer()->SetHLEReady(true); + DEBUG_LOG(DSPHLE, "Update the SoundThread to be in sync"); + soundStream->Update(); //do it in this thread to avoid sync problems - //m_bSyncCmdPending = false; + m_bSyncCmdPending = false; } } }