aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-12-17 22:14:20 -0800
committerChris Robinson <[email protected]>2017-12-17 22:14:20 -0800
commiteee4aca40b65b77f2f25858089c1be6f0759c780 (patch)
treed49709f6d28cb0d685dbbd94d653f90ba34b8b9b /Alc
parent04cf832fe601f02255e4bdab3ca34a49e006e7ab (diff)
Apply chorus and flanger feedback on the tapped re-feed
Diffstat (limited to 'Alc')
-rw-r--r--Alc/effects/chorus.c6
-rw-r--r--Alc/effects/flanger.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/Alc/effects/chorus.c b/Alc/effects/chorus.c
index bc7b3558..e8f2c797 100644
--- a/Alc/effects/chorus.c
+++ b/Alc/effects/chorus.c
@@ -249,9 +249,9 @@ static ALvoid ALchorusState_process(ALchorusState *state, ALsizei SamplesToDo, c
ALfloat mu = (moddelays[i]&FRACTIONMASK) * (1.0f/FRACTIONONE);
sampbuf[offset&bufmask] = SamplesIn[0][base+i];
- temps[i] = (sampbuf[(offset-delay) & bufmask]*(1.0f-mu) +
- sampbuf[(offset-(delay+1)) & bufmask]*mu) * feedback;
- sampbuf[offset&bufmask] += temps[i];
+ temps[i] = sampbuf[(offset-delay) & bufmask]*(1.0f-mu) +
+ sampbuf[(offset-(delay+1)) & bufmask]*mu;
+ sampbuf[offset&bufmask] += temps[i] * feedback;
offset++;
}
diff --git a/Alc/effects/flanger.c b/Alc/effects/flanger.c
index ae54b890..a749f7ba 100644
--- a/Alc/effects/flanger.c
+++ b/Alc/effects/flanger.c
@@ -248,9 +248,9 @@ static ALvoid ALflangerState_process(ALflangerState *state, ALsizei SamplesToDo,
ALfloat mu = (moddelays[i]&FRACTIONMASK) * (1.0f/FRACTIONONE);
sampbuf[offset&bufmask] = SamplesIn[0][base+i];
- temps[i] = (sampbuf[(offset-delay) & bufmask]*(1.0f-mu) +
- sampbuf[(offset-(delay+1)) & bufmask]*mu) * feedback;
- sampbuf[offset&bufmask] += temps[i];
+ temps[i] = sampbuf[(offset-delay) & bufmask]*(1.0f-mu) +
+ sampbuf[(offset-(delay+1)) & bufmask]*mu;
+ sampbuf[offset&bufmask] += temps[i] * feedback;
offset++;
}