Index: webrtc/modules/audio_processing/aec3/aec_state.cc |
diff --git a/webrtc/modules/audio_processing/aec3/aec_state.cc b/webrtc/modules/audio_processing/aec3/aec_state.cc |
index c18fd6d8709e9c8075ebade9ad8d67f26350210c..e43cfc4795d11230d2e103d6de398ba28c6b7b2d 100644 |
--- a/webrtc/modules/audio_processing/aec3/aec_state.cc |
+++ b/webrtc/modules/audio_processing/aec3/aec_state.cc |
@@ -81,7 +81,7 @@ void AnalyzeFilter( |
constexpr int kActiveRenderCounterInitial = 50; |
constexpr int kActiveRenderCounterMax = 200; |
constexpr int kEchoPathChangeCounterInitial = 50; |
-constexpr int kEchoPathChangeCounterMax = 200; |
+constexpr int kEchoPathChangeCounterMax = 3 * 250; |
} // namespace |
@@ -120,6 +120,9 @@ void AecState::Update(const std::vector<std::array<float, kFftLengthBy2Plus1>>& |
const float x_energy = std::inner_product(x.begin(), x.end(), x.begin(), 0.f); |
+ active_render_blocks_ = |
+ echo_path_variability.AudioPathChanged() ? 0 : active_render_blocks_ + 1; |
+ |
echo_path_change_counter_ = echo_path_variability.AudioPathChanged() |
? kEchoPathChangeCounterMax |
: echo_path_change_counter_ - 1; |