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

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

Issue 2090583002: New module for the adaptive level controlling functionality in the audio processing module (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Temporarily deactivated the level controller until the CL with the proper tuning has been landed Created 4 years, 5 months 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 434
435 if (settings_.use_refined_adaptive_filter) { 435 if (settings_.use_refined_adaptive_filter) {
436 config.Set<RefinedAdaptiveFilter>( 436 config.Set<RefinedAdaptiveFilter>(
437 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter)); 437 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter));
438 } 438 }
439 439
440 if (settings_.use_aec3) { 440 if (settings_.use_aec3) {
441 config.Set<EchoCanceller3>(new EchoCanceller3(*settings_.use_aec3)); 441 config.Set<EchoCanceller3>(new EchoCanceller3(*settings_.use_aec3));
442 } 442 }
443 443
444 if (settings_.use_lc) {
445 config.Set<LevelControl>(new LevelControl(true));
446 }
447
444 ap_->SetExtraOptions(config); 448 ap_->SetExtraOptions(config);
445 } 449 }
446 } 450 }
447 451
448 void AecDumpBasedSimulator::HandleMessage(const webrtc::audioproc::Init& msg) { 452 void AecDumpBasedSimulator::HandleMessage(const webrtc::audioproc::Init& msg) {
449 RTC_CHECK(msg.has_sample_rate()); 453 RTC_CHECK(msg.has_sample_rate());
450 RTC_CHECK(msg.has_num_input_channels()); 454 RTC_CHECK(msg.has_num_input_channels());
451 RTC_CHECK(msg.has_num_reverse_channels()); 455 RTC_CHECK(msg.has_num_reverse_channels());
452 RTC_CHECK(msg.has_reverse_sample_rate()); 456 RTC_CHECK(msg.has_reverse_sample_rate());
453 457
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 } 511 }
508 512
509 void AecDumpBasedSimulator::HandleMessage( 513 void AecDumpBasedSimulator::HandleMessage(
510 const webrtc::audioproc::ReverseStream& msg) { 514 const webrtc::audioproc::ReverseStream& msg) {
511 PrepareReverseProcessStreamCall(msg); 515 PrepareReverseProcessStreamCall(msg);
512 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); 516 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface);
513 } 517 }
514 518
515 } // namespace test 519 } // namespace test
516 } // namespace webrtc 520 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698