From 6aafabb8088c6fdfdabb413420ace184c0a801a5 Mon Sep 17 00:00:00 2001 From: markster Date: Tue, 9 Nov 2004 19:16:18 +0000 Subject: Fix a couple of echo can issues (bug #2820) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@496 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- mec2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mec2.h') diff --git a/mec2.h b/mec2.h index a24b01a..c138d7f 100755 --- a/mec2.h +++ b/mec2.h @@ -158,6 +158,7 @@ static inline void init_cc(echo_can_state_t *ec, int N, int maxy, int maxu) { // reset the power computations (for y and u) // ec->Ly_i = DEFAULT_CUTOFF_I; + ec->Lu_i = DEFAULT_CUTOFF_I; // reset the near-end speech detector // @@ -225,7 +226,7 @@ static inline short echo_can_update(echo_can_state_t *ec, short iref, short isig /* push the signal on the circular buffer, too */ add_cc_s(&ec->s_s, isig); ec->s_tilde_i += abs(isig); - ec->y_tilde_i += abs(iref) >> DEFAULT_ALPHA_ST_I; + ec->y_tilde_i += abs(iref) >> DEFAULT_ALPHA_YT_I; /* Add to our list of recent y_tilde's */ add_cc_s(&ec->y_tilde_s, ec->y_tilde_i); -- cgit v1.2.3