Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: webrtc/modules/audio_processing/aec3/aec_state.cc

Issue 2717353002: Further tuning for AEC3 for initial echo suppression and handling of echo path changes (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698