Correct audioproc_f to support the new echo canceller activation

The introduction of the new AEC proxies caused audioproc_f to fail.
This CL corrects audioproc_f so that the AEC2 and AECM echo cancellers
are properly activated using the new AEC proxies.

Bug: webrtc:9535
Change-Id: I1be59a9277aad8f51765c26e34ab16b63bcaeb42
Reviewed-on: https://webrtc-review.googlesource.com/94774
Commit-Queue: Gustaf Ullberg <gustaf@webrtc.org>
Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24340}
This commit is contained in:
Per Åhgren
2018-08-18 01:25:17 +02:00
committed by Commit Bot
parent d541e0f6fa
commit 0320348237

View File

@ -277,7 +277,7 @@ void AecDumpBasedSimulator::HandleMessage(
std::cout << "Setting used in config:" << std::endl;
}
Config config;
AudioProcessing::Config apm_config;
AudioProcessing::Config apm_config = ap_->GetConfig();
if (msg.has_aec_enabled() || settings_.use_aec) {
bool enable = settings_.use_aec ? *settings_.use_aec : msg.aec_enabled();