| 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 } | 443 } |
| 444 | 444 |
| 445 if (settings_.use_aec3) { | 445 if (settings_.use_aec3) { |
| 446 config.Set<EchoCanceller3>(new EchoCanceller3(*settings_.use_aec3)); | 446 config.Set<EchoCanceller3>(new EchoCanceller3(*settings_.use_aec3)); |
| 447 } | 447 } |
| 448 | 448 |
| 449 if (settings_.use_lc) { | 449 if (settings_.use_lc) { |
| 450 apm_config.level_controller.enabled = *settings_.use_lc; | 450 apm_config.level_controller.enabled = *settings_.use_lc; |
| 451 } | 451 } |
| 452 | 452 |
| 453 if (settings_.use_red) { | 453 if (settings_.use_ed) { |
| 454 apm_config.residual_echo_detector.enabled = *settings_.use_red; | 454 apm_config.residual_echo_detector.enabled = *settings_.use_ed; |
| 455 } | 455 } |
| 456 | 456 |
| 457 ap_->ApplyConfig(apm_config); | 457 ap_->ApplyConfig(apm_config); |
| 458 ap_->SetExtraOptions(config); | 458 ap_->SetExtraOptions(config); |
| 459 } | 459 } |
| 460 } | 460 } |
| 461 | 461 |
| 462 void AecDumpBasedSimulator::HandleMessage(const webrtc::audioproc::Init& msg) { | 462 void AecDumpBasedSimulator::HandleMessage(const webrtc::audioproc::Init& msg) { |
| 463 RTC_CHECK(msg.has_sample_rate()); | 463 RTC_CHECK(msg.has_sample_rate()); |
| 464 RTC_CHECK(msg.has_num_input_channels()); | 464 RTC_CHECK(msg.has_num_input_channels()); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 } | 527 } |
| 528 | 528 |
| 529 void AecDumpBasedSimulator::HandleMessage( | 529 void AecDumpBasedSimulator::HandleMessage( |
| 530 const webrtc::audioproc::ReverseStream& msg) { | 530 const webrtc::audioproc::ReverseStream& msg) { |
| 531 PrepareReverseProcessStreamCall(msg); | 531 PrepareReverseProcessStreamCall(msg); |
| 532 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); | 532 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); |
| 533 } | 533 } |
| 534 | 534 |
| 535 } // namespace test | 535 } // namespace test |
| 536 } // namespace webrtc | 536 } // namespace webrtc |
| OLD | NEW |