Chromium Code Reviews

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

Issue 2811283003: AEC3 Tuning changes (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1a9f66ffcb94d0bee478446820142a5fbfa91f28..01c3c440fa66c880c72bb1a66fd913c6f4b7ae28 100644
--- a/webrtc/modules/audio_processing/aec3/aec_state.cc
+++ b/webrtc/modules/audio_processing/aec3/aec_state.cc
@@ -72,7 +72,7 @@ rtc::Optional<size_t> EstimateFilterDelay(
}
constexpr int kEchoPathChangeCounterInitial = kNumBlocksPerSecond / 5;
-constexpr int kEchoPathChangeCounterMax = 3 * kNumBlocksPerSecond;
+constexpr int kEchoPathChangeCounterMax = 2 * kNumBlocksPerSecond;
} // namespace
@@ -90,17 +90,19 @@ void AecState::HandleEchoPathChange(
if (echo_path_variability.AudioPathChanged()) {
blocks_since_last_saturation_ = 0;
active_render_blocks_ = 0;
- echo_path_change_counter_ = kEchoPathChangeCounterMax;
usable_linear_estimate_ = false;
echo_leakage_detected_ = false;
capture_signal_saturation_ = false;
echo_saturation_ = false;
- headset_detected_ = false;
previous_max_sample_ = 0.f;
if (echo_path_variability.delay_change) {
force_zero_gain_counter_ = 0;
force_zero_gain_ = true;
+ echo_path_change_counter_ = kEchoPathChangeCounterMax;
+ }
+ if (echo_path_variability.gain_change) {
+ echo_path_change_counter_ = kEchoPathChangeCounterInitial;
}
}
}
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine