diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-11-09 19:16:18 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-11-09 19:16:18 +0000 |
commit | 6aafabb8088c6fdfdabb413420ace184c0a801a5 (patch) | |
tree | 73e8ac01f8fff9fc72f2b123d77500c87854f9bf /mec2.h | |
parent | d075d41293c9a400071cfed4d38da4636c84654d (diff) |
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
Diffstat (limited to 'mec2.h')
-rwxr-xr-x | mec2.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |