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}
This commit is contained in:
peah
2017-07-07 07:59:24 -07:00
committed by Commit Bot
parent 991521e2f9
commit fb660ae633

View File

@ -100,8 +100,8 @@ void MainFilterUpdateGain::Compute(
// H_error = H_error + factor * erl. // H_error = H_error + factor * erl.
std::array<float, kFftLengthBy2Plus1> H_error_increase; std::array<float, kFftLengthBy2Plus1> H_error_increase;
constexpr float kErlScaleAccurate = 1.f / 30.0f; constexpr float kErlScaleAccurate = 1.f / 100.0f;
constexpr float kErlScaleInaccurate = 1.f / 10.0f; constexpr float kErlScaleInaccurate = 1.f / 60.0f;
std::transform(E2_shadow.begin(), E2_shadow.end(), E2_main.begin(), std::transform(E2_shadow.begin(), E2_shadow.end(), E2_main.begin(),
H_error_increase.begin(), [&](float a, float b) { H_error_increase.begin(), [&](float a, float b) {
return a >= b ? kErlScaleAccurate : kErlScaleInaccurate; return a >= b ? kErlScaleAccurate : kErlScaleInaccurate;