Remove APM internal usage of EchoCancellation
This CL: - Changes EchoCancellationImpl to inherit privately from EchoCancellation. - Removes usage of AudioProcessing::echo_cancellation() inside most of the audio processing module and unit tests. - Default-enables metrics collection in AEC2. This CL breaks audioproc_f backwards compatibility: It can no longer use all recorded settings (drift compensation, suppression level), but prints an error message when such settings are encountered. Some code in audio_processing_unittest.cc still uses the old interface. I'll handle that in a separate change, as it is not as straightforward to preserve coverage. Bug: webrtc:9535 Change-Id: Ia4d4b8d117ccbe516e5345c15d37298418590686 Reviewed-on: https://webrtc-review.googlesource.com/97603 Commit-Queue: Sam Zackrisson <saza@webrtc.org> Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24724}
This commit is contained in:

committed by
Commit Bot

parent
36b3179312
commit
1a03960e63
@ -193,13 +193,12 @@ struct ExperimentalNs {
|
||||
// AudioProcessing* apm = AudioProcessingBuilder().Create();
|
||||
//
|
||||
// AudioProcessing::Config config;
|
||||
// config.echo_canceller.enabled = true;
|
||||
// config.echo_canceller.mobile_mode = false;
|
||||
// config.high_pass_filter.enabled = true;
|
||||
// config.gain_controller2.enabled = true;
|
||||
// apm->ApplyConfig(config)
|
||||
//
|
||||
// apm->echo_cancellation()->enable_drift_compensation(false);
|
||||
// apm->echo_cancellation()->Enable(true);
|
||||
//
|
||||
// apm->noise_reduction()->set_level(kHighSuppression);
|
||||
// apm->noise_reduction()->Enable(true);
|
||||
//
|
||||
|
Reference in New Issue
Block a user