AEC3: Cleanup test code for platforms with clock-drift

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 <devicentepena@webrtc.org>
Commit-Queue: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25105}
This commit is contained in:
Per Åhgren
2018-10-11 00:06:32 +02:00
committed by Commit Bot
parent d6b079686f
commit 74f6c7ed6c

View File

@ -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<size_t>(5));