summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2009-07-12 13:54:18 +0000
committerhrydgard <hrydgard@gmail.com>2009-07-12 13:54:18 +0000
commit38f3ca5b91b2dd3e2eb3da98ff473a53b14c21e3 (patch)
treee8d906f17944e60c02ce7f711cde2491eeb7a3dc /Source
parent0bdf6656c552cde42303d59eefbfb20d0190ed26 (diff)
DSPHLE: remove some annoying clicking
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3765 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_Zelda_Voice.cpp4
1 files changed, 4 insertions, 0 deletions
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