summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorayuanx <ayuanx@gmail.com>2009-12-10 17:41:47 +0000
committerayuanx <ayuanx@gmail.com>2009-12-10 17:41:47 +0000
commit888e6e12e64fef5ca52dcd76561afb14e28f105b (patch)
tree83ac6632690a22137b8d6fe5b82eeee012b1c18c
parent8cc2cc11fd3c92915304bfb56ca726a84bee297d (diff)
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
-rw-r--r--Source/Plugins/Plugin_DSP_HLE/Src/UCodes/UCode_AX_Voice.h3
1 files changed, 2 insertions, 1 deletions
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;