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

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

Issue 2337133005: Correcting the enabling of the level controller in the audio processing simulator (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 if (settings_.use_refined_adaptive_filter) { 436 if (settings_.use_refined_adaptive_filter) {
437 config.Set<RefinedAdaptiveFilter>( 437 config.Set<RefinedAdaptiveFilter>(
438 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter)); 438 new RefinedAdaptiveFilter(*settings_.use_refined_adaptive_filter));
439 } 439 }
440 440
441 if (settings_.use_aec3) { 441 if (settings_.use_aec3) {
442 config.Set<EchoCanceller3>(new EchoCanceller3(*settings_.use_aec3)); 442 config.Set<EchoCanceller3>(new EchoCanceller3(*settings_.use_aec3));
443 } 443 }
444 444
445 if (settings_.use_lc) { 445 if (settings_.use_lc) {
446 apm_config.level_controller.enabled = true; 446 apm_config.level_controller.enabled = *settings_.use_lc;
447 } 447 }
448 448
449 ap_->ApplyConfig(apm_config); 449 ap_->ApplyConfig(apm_config);
450 ap_->SetExtraOptions(config); 450 ap_->SetExtraOptions(config);
451 } 451 }
452 } 452 }
453 453
454 void AecDumpBasedSimulator::HandleMessage(const webrtc::audioproc::Init& msg) { 454 void AecDumpBasedSimulator::HandleMessage(const webrtc::audioproc::Init& msg) {
455 RTC_CHECK(msg.has_sample_rate()); 455 RTC_CHECK(msg.has_sample_rate());
456 RTC_CHECK(msg.has_num_input_channels()); 456 RTC_CHECK(msg.has_num_input_channels());
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 } 513 }
514 514
515 void AecDumpBasedSimulator::HandleMessage( 515 void AecDumpBasedSimulator::HandleMessage(
516 const webrtc::audioproc::ReverseStream& msg) { 516 const webrtc::audioproc::ReverseStream& msg) {
517 PrepareReverseProcessStreamCall(msg); 517 PrepareReverseProcessStreamCall(msg);
518 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); 518 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface);
519 } 519 }
520 520
521 } // namespace test 521 } // namespace test
522 } // namespace webrtc 522 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698