diff options
Diffstat (limited to 'Alc/effects/flanger.c')
-rw-r--r-- | Alc/effects/flanger.c | 6 |
1 files changed, 3 insertions, 3 deletions
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++; } |