From 38f3ca5b91b2dd3e2eb3da98ff473a53b14c21e3 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sun, 12 Jul 2009 13:54:18 +0000 Subject: [PATCH] DSPHLE: remove some annoying clicking git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3765 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda_Voice.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda_Voice.cpp b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda_Voice.cpp index 4a3649bbc6..4a0fbd725c 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda_Voice.cpp +++ b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda_Voice.cpp @@ -134,6 +134,8 @@ _lRestart: PB.KeyOff = 1; PB.RemLength = 0; PB.CurAddr = PB.StartAddr + (PB.RestartPos << 1) + PB.Length; + while (outpos < _RealSize) + _Buffer[outpos++] = 0; return; } else @@ -228,6 +230,8 @@ restart: PB.KeyOff = 1; PB.RemLength = 0; PB.CurAddr = PB.StartAddr + PB.RestartPos + PB.Length; + while (sampleCount < _RealSize) + _Buffer[sampleCount++] = 0; return; } else