aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-08-14 20:44:55 -0700
committerChris Robinson <[email protected]>2008-08-14 20:44:55 -0700
commitac8c082b8956f315c83b770c26bb3cc8858323b6 (patch)
tree5d3212676132eab558d5d427fe3aecc6aee24731
parent084df2a229a1d0f776cd8b7f579cb40c1780f893 (diff)
Overwrite the input wet sample with the output
-rw-r--r--Alc/ALu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 39f01f2f..1aaa1832 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1016,12 +1016,12 @@ ALvoid aluMixData(ALCcontext *ALContext,ALvoid *buffer,ALsizei size,ALenum forma
sample += DelayBuffer[LatePos];
- WetBuffer[i][FRONT_LEFT] += sample;
- WetBuffer[i][FRONT_RIGHT] += sample;
- WetBuffer[i][SIDE_LEFT] += sample;
- WetBuffer[i][SIDE_RIGHT] += sample;
- WetBuffer[i][BACK_LEFT] += sample;
- WetBuffer[i][BACK_RIGHT] += sample;
+ WetBuffer[i][FRONT_LEFT] = sample;
+ WetBuffer[i][FRONT_RIGHT] = sample;
+ WetBuffer[i][SIDE_LEFT] = sample;
+ WetBuffer[i][SIDE_RIGHT] = sample;
+ WetBuffer[i][BACK_LEFT] = sample;
+ WetBuffer[i][BACK_RIGHT] = sample;
LatePos = (LatePos+1) % Length;
ReflectPos = (ReflectPos+1) % Length;