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

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

Issue 2486763002: Add support to audioproc_f for running the residual echo detector and producing an echo likelihood … (Closed)
Patch Set: Initial version Created 4 years, 1 month 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) {
454 apm_config.residual_echo_detector.enabled = *settings_.use_red;
455 }
456
453 ap_->ApplyConfig(apm_config); 457 ap_->ApplyConfig(apm_config);
454 ap_->SetExtraOptions(config); 458 ap_->SetExtraOptions(config);
455 } 459 }
456 } 460 }
457 461
458 void AecDumpBasedSimulator::HandleMessage(const webrtc::audioproc::Init& msg) { 462 void AecDumpBasedSimulator::HandleMessage(const webrtc::audioproc::Init& msg) {
459 RTC_CHECK(msg.has_sample_rate()); 463 RTC_CHECK(msg.has_sample_rate());
460 RTC_CHECK(msg.has_num_input_channels()); 464 RTC_CHECK(msg.has_num_input_channels());
461 RTC_CHECK(msg.has_num_reverse_channels()); 465 RTC_CHECK(msg.has_num_reverse_channels());
462 RTC_CHECK(msg.has_reverse_sample_rate()); 466 RTC_CHECK(msg.has_reverse_sample_rate());
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 } 527 }
524 528
525 void AecDumpBasedSimulator::HandleMessage( 529 void AecDumpBasedSimulator::HandleMessage(
526 const webrtc::audioproc::ReverseStream& msg) { 530 const webrtc::audioproc::ReverseStream& msg) {
527 PrepareReverseProcessStreamCall(msg); 531 PrepareReverseProcessStreamCall(msg);
528 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); 532 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface);
529 } 533 }
530 534
531 } // namespace test 535 } // namespace test
532 } // namespace webrtc 536 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698