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:
@ -37,8 +37,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
struct AecCore;
|
||||
|
||||
class AecDump;
|
||||
class AudioBuffer;
|
||||
class AudioFrame;
|
||||
@ -50,53 +48,6 @@ class EchoDetector;
|
||||
class CustomAudioAnalyzer;
|
||||
class CustomProcessing;
|
||||
|
||||
// Use to enable the extended filter mode in the AEC, along with robustness
|
||||
// measures around the reported system delays. It comes with a significant
|
||||
// increase in AEC complexity, but is much more robust to unreliable reported
|
||||
// delays.
|
||||
//
|
||||
// Detailed changes to the algorithm:
|
||||
// - The filter length is changed from 48 to 128 ms. This comes with tuning of
|
||||
// several parameters: i) filter adaptation stepsize and error threshold;
|
||||
// ii) non-linear processing smoothing and overdrive.
|
||||
// - Option to ignore the reported delays on platforms which we deem
|
||||
// sufficiently unreliable. See WEBRTC_UNTRUSTED_DELAY in echo_cancellation.c.
|
||||
// - Faster startup times by removing the excessive "startup phase" processing
|
||||
// of reported delays.
|
||||
// - Much more conservative adjustments to the far-end read pointer. We smooth
|
||||
// the delay difference more heavily, and back off from the difference more.
|
||||
// Adjustments force a readaptation of the filter, so they should be avoided
|
||||
// except when really necessary.
|
||||
struct ExtendedFilter {
|
||||
ExtendedFilter() : enabled(false) {}
|
||||
explicit ExtendedFilter(bool enabled) : enabled(enabled) {}
|
||||
static const ConfigOptionID identifier = ConfigOptionID::kExtendedFilter;
|
||||
bool enabled;
|
||||
};
|
||||
|
||||
// Enables the refined linear filter adaptation in the echo canceller.
|
||||
// This configuration only applies to non-mobile echo cancellation.
|
||||
// It can be set in the constructor or using AudioProcessing::SetExtraOptions().
|
||||
struct RefinedAdaptiveFilter {
|
||||
RefinedAdaptiveFilter() : enabled(false) {}
|
||||
explicit RefinedAdaptiveFilter(bool enabled) : enabled(enabled) {}
|
||||
static const ConfigOptionID identifier =
|
||||
ConfigOptionID::kAecRefinedAdaptiveFilter;
|
||||
bool enabled;
|
||||
};
|
||||
|
||||
// Enables delay-agnostic echo cancellation. This feature relies on internally
|
||||
// estimated delays between the process and reverse streams, thus not relying
|
||||
// on reported system delays. This configuration only applies to non-mobile echo
|
||||
// cancellation. It can be set in the constructor or using
|
||||
// AudioProcessing::SetExtraOptions().
|
||||
struct DelayAgnostic {
|
||||
DelayAgnostic() : enabled(false) {}
|
||||
explicit DelayAgnostic(bool enabled) : enabled(enabled) {}
|
||||
static const ConfigOptionID identifier = ConfigOptionID::kDelayAgnostic;
|
||||
bool enabled;
|
||||
};
|
||||
|
||||
// Use to enable experimental gain control (AGC). At startup the experimental
|
||||
// AGC moves the microphone volume up to |startup_min_volume| if the current
|
||||
// microphone volume is set too low. The value is clamped to its operating range
|
||||
@ -279,9 +230,10 @@ class RTC_EXPORT AudioProcessing : public rtc::RefCountInterface {
|
||||
bool enabled = false;
|
||||
bool mobile_mode = false;
|
||||
// Recommended not to use. Will be removed in the future.
|
||||
// APM components are not fine-tuned for legacy suppression levels.
|
||||
// TODO(peah): Remove.
|
||||
bool legacy_moderate_suppression_level = false;
|
||||
// Recommended not to use. Will be removed in the future.
|
||||
// TODO(webrtc:11165): Remove.
|
||||
bool use_legacy_aec = false;
|
||||
bool export_linear_aec_output = false;
|
||||
// Enforce the highpass filter to be on (has no effect for the mobile
|
||||
|
Reference in New Issue
Block a user