From 33a74f159459a9e9bb6d90f26fc3b5be7814448e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 17 May 2009 22:50:07 -0700 Subject: Clear the filter history directly --- Alc/alcEcho.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/alcEcho.c') 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; -- cgit v1.2.3