From 74f6c7ed6c09d9e48193ccb79700ff66b203e848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85hgren?= Date: Thu, 11 Oct 2018 00:06:32 +0200 Subject: [PATCH] AEC3: Cleanup test code for platforms with clock-drift MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL removes outdated code for testing of platforms with clock-drift Bug: webrtc:8671 Change-Id: Ie202c514609d9f3d2357107b0daf895331275797 Reviewed-on: https://webrtc-review.googlesource.com/c/105183 Reviewed-by: Jesus de Vicente Pena Commit-Queue: Per Ã…hgren Cr-Commit-Position: refs/heads/master@{#25105} --- .../audio_processing/aec3/echo_canceller3.cc | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/modules/audio_processing/aec3/echo_canceller3.cc b/modules/audio_processing/aec3/echo_canceller3.cc index 4aa239ca27..71b8c08ba4 100644 --- a/modules/audio_processing/aec3/echo_canceller3.cc +++ b/modules/audio_processing/aec3/echo_canceller3.cc @@ -92,37 +92,6 @@ EchoCanceller3Config AdjustConfig(const EchoCanceller3Config& config) { adjusted_cfg.ep_strength.default_len = 0.f; } - // Use customized parameters when the system has clock-drift. - if (config.echo_removal_control.has_clock_drift) { - RTC_LOG(LS_WARNING) - << "Customizing parameters to work well for the clock-drift case."; - if (config.ep_strength.bounded_erl) { - adjusted_cfg.ep_strength.default_len = 0.85f; - adjusted_cfg.ep_strength.lf = 0.01f; - adjusted_cfg.ep_strength.mf = 0.01f; - adjusted_cfg.ep_strength.hf = 0.01f; - adjusted_cfg.echo_model.render_pre_window_size = 1; - adjusted_cfg.echo_model.render_post_window_size = 1; - adjusted_cfg.echo_model.nonlinear_hold = 3; - adjusted_cfg.echo_model.nonlinear_release = 0.001f; - } else { - adjusted_cfg.ep_strength.bounded_erl = true; - adjusted_cfg.delay.down_sampling_factor = 2; - adjusted_cfg.ep_strength.default_len = 0.8f; - adjusted_cfg.ep_strength.lf = 0.01f; - adjusted_cfg.ep_strength.mf = 0.01f; - adjusted_cfg.ep_strength.hf = 0.01f; - adjusted_cfg.filter.main = {30, 0.1f, 0.8f, 0.001f, 20075344.f}; - adjusted_cfg.filter.shadow = {30, 0.7f, 20075344.f}; - adjusted_cfg.filter.main_initial = {30, 0.1f, 1.5f, 0.001f, 20075344.f}; - adjusted_cfg.filter.shadow_initial = {30, 0.9f, 20075344.f}; - adjusted_cfg.echo_model.render_pre_window_size = 2; - adjusted_cfg.echo_model.render_post_window_size = 2; - adjusted_cfg.echo_model.nonlinear_hold = 3; - adjusted_cfg.echo_model.nonlinear_release = 0.6f; - } - } - if (UseShortDelayEstimatorWindow()) { adjusted_cfg.delay.num_filters = std::min(adjusted_cfg.delay.num_filters, static_cast(5));