Apply chorus and flanger feedback on the tapped re-feed
This commit is contained in:
parent
04cf832fe6
commit
eee4aca40b
@ -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++;
|
||||
}
|
||||
|
||||
|
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user