From 888e6e12e64fef5ca52dcd76561afb14e28f105b Mon Sep 17 00:00:00 2001 From: ayuanx Date: Thu, 10 Dec 2009 17:41:47 +0000 Subject: [PATCH] DSPHLE: Fixed the unbearable noise in "Dead Space Extraction". Theoretically this commit should not break any game whose sound already worked in previous revisions, please test this on every game you have got. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4674 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h index 3fc371b112..3309034d30 100644 --- a/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h +++ b/Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h @@ -247,7 +247,8 @@ inline void MixAddVoice(ParamBlockType &pb, int *templbuffer, int *temprbuffer, else { pb.running = 0; - samplePos = samplePos - sampleEnd + loopPos; + samplePos = loopPos; + //samplePos = samplePos - sampleEnd + loopPos; memset(&pb.updates, 0, sizeof(pb.updates)); memset(pb.src.last_samples, 0, 8); break;