Toggle AECs via AudioProcessing::Config
This allows clients to stop using the old pointer-to-submodule interfaces for enabling/disabling AEC2 and AECM. The legacy suppression level flag for AEC2 is not yet activated. NoTry=TRUE Bug: webrtc:9535 Change-Id: Ie2c3378d832a6b393aec656d96597f85e299f500 Reviewed-on: https://webrtc-review.googlesource.com/94771 Commit-Queue: Sam Zackrisson <saza@webrtc.org> Reviewed-by: Alex Loiko <aleloi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24328}
This commit is contained in:
committed by
Commit Bot
parent
3229d65fd0
commit
b3b47ad7e6
@ -677,6 +677,13 @@ void AudioProcessingImpl::ApplyConfig(const AudioProcessing::Config& config) {
|
||||
rtc::CritScope cs_render(&crit_render_);
|
||||
rtc::CritScope cs_capture(&crit_capture_);
|
||||
|
||||
static_cast<EchoCancellation*>(public_submodules_->echo_cancellation.get())
|
||||
->Enable(config_.echo_canceller.enabled &&
|
||||
!config_.echo_canceller.mobile_mode);
|
||||
static_cast<EchoControlMobile*>(public_submodules_->echo_control_mobile.get())
|
||||
->Enable(config_.echo_canceller.enabled &&
|
||||
config_.echo_canceller.mobile_mode);
|
||||
|
||||
InitializeLowCutFilter();
|
||||
|
||||
RTC_LOG(LS_INFO) << "Highpass filter activated: "
|
||||
|
||||
Reference in New Issue
Block a user