summaryrefslogtreecommitdiff
path: root/mec2.h
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-11-09 19:16:18 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-11-09 19:16:18 +0000
commit6aafabb8088c6fdfdabb413420ace184c0a801a5 (patch)
tree73e8ac01f8fff9fc72f2b123d77500c87854f9bf /mec2.h
parentd075d41293c9a400071cfed4d38da4636c84654d (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-xmec2.h3
1 files changed, 2 insertions, 1 deletions
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);