summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);