Remove deprecated legacy AEC code
This CL removes the deprecated legacy AEC code. Note that this CL should not be landed before the M80 release has been cut. Bug: webrtc:11165 Change-Id: I59ee94526e62f702bb9fa9fa2d38c4e48f44753c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/161238 Commit-Queue: Per Åhgren <peah@webrtc.org> Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org> Reviewed-by: Sam Zackrisson <saza@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30036}
This commit is contained in:
@ -10,7 +10,6 @@
|
||||
|
||||
#include "modules/audio_processing/test/debug_dump_replayer.h"
|
||||
|
||||
#include "modules/audio_processing/echo_cancellation_impl.h"
|
||||
#include "modules/audio_processing/test/protobuf_utils.h"
|
||||
#include "modules/audio_processing/test/runtime_setting_util.h"
|
||||
#include "rtc_base/checks.h"
|
||||
@ -181,8 +180,6 @@ void DebugDumpReplayer::MaybeRecreateApm(const audioproc::Config& msg) {
|
||||
// These configurations cannot be changed on the fly.
|
||||
Config config;
|
||||
RTC_CHECK(msg.has_aec_delay_agnostic_enabled());
|
||||
config.Set<DelayAgnostic>(
|
||||
new DelayAgnostic(msg.aec_delay_agnostic_enabled()));
|
||||
|
||||
RTC_CHECK(msg.has_noise_robust_agc_enabled());
|
||||
config.Set<ExperimentalAgc>(
|
||||
@ -193,8 +190,6 @@ void DebugDumpReplayer::MaybeRecreateApm(const audioproc::Config& msg) {
|
||||
new ExperimentalNs(msg.transient_suppression_enabled()));
|
||||
|
||||
RTC_CHECK(msg.has_aec_extended_filter_enabled());
|
||||
config.Set<ExtendedFilter>(
|
||||
new ExtendedFilter(msg.aec_extended_filter_enabled()));
|
||||
|
||||
// We only create APM once, since changes on these fields should not
|
||||
// happen in current implementation.
|
||||
@ -212,12 +207,6 @@ void DebugDumpReplayer::ConfigureApm(const audioproc::Config& msg) {
|
||||
apm_config.echo_canceller.enabled = msg.aec_enabled() || msg.aecm_enabled();
|
||||
apm_config.echo_canceller.mobile_mode = msg.aecm_enabled();
|
||||
|
||||
RTC_CHECK(msg.has_aec_suppression_level());
|
||||
apm_config.echo_canceller.legacy_moderate_suppression_level =
|
||||
static_cast<EchoCancellationImpl::SuppressionLevel>(
|
||||
msg.aec_suppression_level()) ==
|
||||
EchoCancellationImpl::SuppressionLevel::kModerateSuppression;
|
||||
|
||||
// HPF configs.
|
||||
RTC_CHECK(msg.has_hpf_enabled());
|
||||
apm_config.high_pass_filter.enabled = msg.hpf_enabled();
|
||||
|
||||
Reference in New Issue
Block a user