Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc

Issue 2567513003: Added basic framework for AEC3 in the audio processing module (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 std::cout << " experiments not included by default in the simulation: " 435 std::cout << " experiments not included by default in the simulation: "
436 << msg.experiments_description() << std::endl; 436 << msg.experiments_description() << std::endl;
437 } 437 }
438 438
439 if (settings_.use_refined_adaptive_filter) { 439 if (settings_.use_refined_adaptive_filter) {
440 config.Set<RefinedAdaptiveFilter>( 440 config.Set<RefinedAdaptiveFilter>(
441 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter)); 441 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter));
442 } 442 }
443 443
444 if (settings_.use_aec3) { 444 if (settings_.use_aec3) {
445 config.Set<EchoCanceller3>(new EchoCanceller3(*settings_.use_aec3)); 445 apm_config.echo_canceller3.enabled = *settings_.use_aec3;
446 } 446 }
447 447
448 if (settings_.use_lc) { 448 if (settings_.use_lc) {
449 apm_config.level_controller.enabled = *settings_.use_lc; 449 apm_config.level_controller.enabled = *settings_.use_lc;
450 } 450 }
451 451
452 if (settings_.use_ed) { 452 if (settings_.use_ed) {
453 apm_config.residual_echo_detector.enabled = *settings_.use_ed; 453 apm_config.residual_echo_detector.enabled = *settings_.use_ed;
454 } 454 }
455 455
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 } 526 }
527 527
528 void AecDumpBasedSimulator::HandleMessage( 528 void AecDumpBasedSimulator::HandleMessage(
529 const webrtc::audioproc::ReverseStream& msg) { 529 const webrtc::audioproc::ReverseStream& msg) {
530 PrepareReverseProcessStreamCall(msg); 530 PrepareReverseProcessStreamCall(msg);
531 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); 531 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface);
532 } 532 }
533 533
534 } // namespace test 534 } // namespace test
535 } // namespace webrtc 535 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698