diff options
author | Chris Robinson <[email protected]> | 2013-05-21 07:10:24 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-05-21 07:10:24 -0700 |
commit | e4186f49039a17916dedaa536143761d0a6caa87 (patch) | |
tree | 4db81426d103111f53eae936e520d627e7916ccd /Alc/alcEcho.c | |
parent | 3ee0f8feb9a011eca3a76848f1ffb139c592f7b4 (diff) |
Use a properly-defined history for the FILTER struct
Diffstat (limited to 'Alc/alcEcho.c')
-rw-r--r-- | Alc/alcEcho.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c index ada61c96..1aab9870 100644 --- a/Alc/alcEcho.c +++ b/Alc/alcEcho.c @@ -48,7 +48,6 @@ typedef struct ALechoState { ALfloat FeedGain; FILTER iirFilter; - ALfloat history[2]; } ALechoState; static ALvoid ALechoState_Destroy(ALechoState *state) @@ -144,7 +143,7 @@ static ALvoid ALechoState_Process(ALechoState *state, ALuint SamplesToDo, const // Apply damping and feedback gain to the second tap, and mix in the // new sample - smp = lpFilter2P(&state->iirFilter, 0, temps[i][1]+SamplesIn[i]); + smp = lpFilter2P(&state->iirFilter, temps[i][1]+SamplesIn[i]); state->SampleBuffer[offset&mask] = smp * state->FeedGain; } |