summaryrefslogtreecommitdiffstats
path: root/Alc/alcEcho.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-05-17 22:50:07 -0700
committerChris Robinson <[email protected]>2009-05-17 22:50:07 -0700
commit33a74f159459a9e9bb6d90f26fc3b5be7814448e (patch)
tree33fa6a70f02f3f5cea4fab601faac85aa728b763 /Alc/alcEcho.c
parente4da1224cbfd85bad56863d5a512fd197cc3a09b (diff)
Clear the filter history directly
Diffstat (limited to 'Alc/alcEcho.c')
-rw-r--r--Alc/alcEcho.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c
index feede2ba..e3c5e280 100644
--- a/Alc/alcEcho.c
+++ b/Alc/alcEcho.c
@@ -97,8 +97,8 @@ ALechoState *EchoCreate(ALCcontext *Context)
state->GainL = 0.0f;
state->GainR = 0.0f;
- for(i = 0;i < sizeof(state->history)/sizeof(state->history[0]);i++)
- state->history[i] = 0.0f;
+ for(i = 0;i < 2;i++)
+ state->iirFilter.history[i] = 0.0f;
state->iirFilter.coeff = 0.0f;
return state;