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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 std::cout << " experiments not included by default in the simulation: " | 484 std::cout << " experiments not included by default in the simulation: " |
485 << msg.experiments_description() << std::endl; | 485 << msg.experiments_description() << std::endl; |
486 } | 486 } |
487 | 487 |
488 if (settings_.use_refined_adaptive_filter) { | 488 if (settings_.use_refined_adaptive_filter) { |
489 config.Set<RefinedAdaptiveFilter>( | 489 config.Set<RefinedAdaptiveFilter>( |
490 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter)); | 490 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter)); |
491 } | 491 } |
492 | 492 |
493 if (settings_.use_aec3) { | 493 if (settings_.use_aec3) { |
494 config.Set<EchoCanceller3>(new EchoCanceller3(*settings_.use_aec3)); | 494 apm_config.echo_canceller3.enabled = *settings_.use_aec3; |
495 } | 495 } |
496 | 496 |
497 if (settings_.use_lc) { | 497 if (settings_.use_lc) { |
498 apm_config.level_controller.enabled = *settings_.use_lc; | 498 apm_config.level_controller.enabled = *settings_.use_lc; |
499 } | 499 } |
500 | 500 |
501 if (settings_.use_ed) { | 501 if (settings_.use_ed) { |
502 apm_config.residual_echo_detector.enabled = *settings_.use_ed; | 502 apm_config.residual_echo_detector.enabled = *settings_.use_ed; |
503 } | 503 } |
504 | 504 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 } | 575 } |
576 | 576 |
577 void AecDumpBasedSimulator::HandleMessage( | 577 void AecDumpBasedSimulator::HandleMessage( |
578 const webrtc::audioproc::ReverseStream& msg) { | 578 const webrtc::audioproc::ReverseStream& msg) { |
579 PrepareReverseProcessStreamCall(msg); | 579 PrepareReverseProcessStreamCall(msg); |
580 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); | 580 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); |
581 } | 581 } |
582 | 582 |
583 } // namespace test | 583 } // namespace test |
584 } // namespace webrtc | 584 } // namespace webrtc |
OLD | NEW |