Use AudioProcessingBuilder everywhere AudioProcessing is created.
The AudioProcessingBuilder was recently introduced in https://webrtc-review.googlesource.com/c/src/+/34651 to make it easier to create APM instances. This CL replaces all calls to the old Create methods with the new AudioProcessingBuilder. Bug: webrtc:8668 Change-Id: Ibb5f0fc0dbcc85fcf3355b01bec916f20fe0eb67 Reviewed-on: https://webrtc-review.googlesource.com/36082 Commit-Queue: Ivo Creusen <ivoc@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21534}
This commit is contained in:
@ -139,15 +139,14 @@ DebugDumpGenerator::DebugDumpGenerator(const std::string& input_file_name,
|
||||
output_(new ChannelBuffer<float>(output_config_.num_frames(),
|
||||
output_config_.num_channels())),
|
||||
worker_queue_("debug_dump_generator_worker_queue"),
|
||||
apm_(AudioProcessing::Create(
|
||||
config,
|
||||
nullptr,
|
||||
nullptr,
|
||||
(enable_aec3 ? std::unique_ptr<EchoControlFactory>(
|
||||
new EchoCanceller3Factory())
|
||||
: nullptr),
|
||||
nullptr)),
|
||||
dump_file_name_(dump_file_name) {}
|
||||
dump_file_name_(dump_file_name) {
|
||||
AudioProcessingBuilder apm_builder;
|
||||
if (enable_aec3) {
|
||||
apm_builder.SetEchoControlFactory(
|
||||
std::unique_ptr<EchoControlFactory>(new EchoCanceller3Factory()));
|
||||
}
|
||||
apm_.reset(apm_builder.Create(config));
|
||||
}
|
||||
|
||||
DebugDumpGenerator::DebugDumpGenerator(
|
||||
const Config& config,
|
||||
|
||||
Reference in New Issue
Block a user