OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 if (settings_.use_refined_adaptive_filter) { | 436 if (settings_.use_refined_adaptive_filter) { |
437 config.Set<RefinedAdaptiveFilter>( | 437 config.Set<RefinedAdaptiveFilter>( |
438 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter)); | 438 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter)); |
439 } | 439 } |
440 | 440 |
441 if (settings_.use_aec3) { | 441 if (settings_.use_aec3) { |
442 config.Set<EchoCanceller3>(new EchoCanceller3(*settings_.use_aec3)); | 442 config.Set<EchoCanceller3>(new EchoCanceller3(*settings_.use_aec3)); |
443 } | 443 } |
444 | 444 |
445 if (settings_.use_lc) { | 445 if (settings_.use_lc) { |
446 apm_config.level_controller.enabled = true; | 446 apm_config.level_controller.enabled = *settings_.use_lc; |
447 } | 447 } |
448 | 448 |
449 ap_->ApplyConfig(apm_config); | 449 ap_->ApplyConfig(apm_config); |
450 ap_->SetExtraOptions(config); | 450 ap_->SetExtraOptions(config); |
451 } | 451 } |
452 } | 452 } |
453 | 453 |
454 void AecDumpBasedSimulator::HandleMessage(const webrtc::audioproc::Init& msg) { | 454 void AecDumpBasedSimulator::HandleMessage(const webrtc::audioproc::Init& msg) { |
455 RTC_CHECK(msg.has_sample_rate()); | 455 RTC_CHECK(msg.has_sample_rate()); |
456 RTC_CHECK(msg.has_num_input_channels()); | 456 RTC_CHECK(msg.has_num_input_channels()); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 } | 513 } |
514 | 514 |
515 void AecDumpBasedSimulator::HandleMessage( | 515 void AecDumpBasedSimulator::HandleMessage( |
516 const webrtc::audioproc::ReverseStream& msg) { | 516 const webrtc::audioproc::ReverseStream& msg) { |
517 PrepareReverseProcessStreamCall(msg); | 517 PrepareReverseProcessStreamCall(msg); |
518 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); | 518 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); |
519 } | 519 } |
520 | 520 |
521 } // namespace test | 521 } // namespace test |
522 } // namespace webrtc | 522 } // namespace webrtc |
OLD | NEW |