From fb660ae633ba4bc4bd7f7607d1aeb8e501570b09 Mon Sep 17 00:00:00 2001 From: peah Date: Fri, 7 Jul 2017 07:59:24 -0700 Subject: [PATCH] Decreased the adaptation rate for the adaptive filter in the echo canceller 3 BUG=webrtc:7955 Review-Url: https://codereview.webrtc.org/2968223003 Cr-Commit-Position: refs/heads/master@{#18932} --- .../modules/audio_processing/aec3/main_filter_update_gain.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/audio_processing/aec3/main_filter_update_gain.cc b/webrtc/modules/audio_processing/aec3/main_filter_update_gain.cc index 75254ba492..3d5154d73f 100644 --- a/webrtc/modules/audio_processing/aec3/main_filter_update_gain.cc +++ b/webrtc/modules/audio_processing/aec3/main_filter_update_gain.cc @@ -100,8 +100,8 @@ void MainFilterUpdateGain::Compute( // H_error = H_error + factor * erl. std::array H_error_increase; - constexpr float kErlScaleAccurate = 1.f / 30.0f; - constexpr float kErlScaleInaccurate = 1.f / 10.0f; + constexpr float kErlScaleAccurate = 1.f / 100.0f; + constexpr float kErlScaleInaccurate = 1.f / 60.0f; std::transform(E2_shadow.begin(), E2_shadow.end(), E2_main.begin(), H_error_increase.begin(), [&](float a, float b) { return a >= b ? kErlScaleAccurate : kErlScaleInaccurate;