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

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: Changes in response to reviewer comments 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/include/config.h ('k') | webrtc/modules/audio_processing/test/audio_processing_simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698