Apply chorus and flanger feedback on the tapped re-feed

This commit is contained in:
Chris Robinson 2017-12-17 22:14:20 -08:00
parent 04cf832fe6
commit eee4aca40b
2 changed files with 6 additions and 6 deletions

View File

@ -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++;
}

View File

@ -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++;
}