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

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

Issue 2075093003: Fix ProcessReverseStream usage in audioproc_f (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 | webrtc/modules/audio_processing/test/audio_processing_simulator.cc » ('j') | 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 if (msg.has_transient_suppression_enabled() || settings_.use_ts) { 379 if (msg.has_transient_suppression_enabled() || settings_.use_ts) {
380 bool enable = settings_.use_ts ? *settings_.use_ts 380 bool enable = settings_.use_ts ? *settings_.use_ts
381 : msg.transient_suppression_enabled(); 381 : msg.transient_suppression_enabled();
382 config.Set<ExperimentalNs>(new ExperimentalNs(enable)); 382 config.Set<ExperimentalNs>(new ExperimentalNs(enable));
383 if (settings_.use_verbose_logging) { 383 if (settings_.use_verbose_logging) {
384 std::cout << " transient_suppression_enabled: " 384 std::cout << " transient_suppression_enabled: "
385 << (enable ? "true" : "false") << std::endl; 385 << (enable ? "true" : "false") << std::endl;
386 } 386 }
387 } 387 }
388 388
389 if (msg.has_intelligibility_enhancer_enabled() || settings_.use_ie) {
390 bool enable = settings_.use_ie ? *settings_.use_ie
391 : msg.intelligibility_enhancer_enabled();
392 config.Set<Intelligibility>(new Intelligibility(enable));
393 if (settings_.use_verbose_logging) {
394 std::cout << " intelligibility_enhancer_enabled: "
395 << (enable ? "true" : "false") << std::endl;
396 }
397 }
398
389 if (msg.has_hpf_enabled() || settings_.use_hpf) { 399 if (msg.has_hpf_enabled() || settings_.use_hpf) {
390 bool enable = settings_.use_hpf ? *settings_.use_hpf : msg.hpf_enabled(); 400 bool enable = settings_.use_hpf ? *settings_.use_hpf : msg.hpf_enabled();
391 RTC_CHECK_EQ(AudioProcessing::kNoError, 401 RTC_CHECK_EQ(AudioProcessing::kNoError,
392 ap_->high_pass_filter()->Enable(enable)); 402 ap_->high_pass_filter()->Enable(enable));
393 if (settings_.use_verbose_logging) { 403 if (settings_.use_verbose_logging) {
394 std::cout << " hpf_enabled: " << (enable ? "true" : "false") 404 std::cout << " hpf_enabled: " << (enable ? "true" : "false")
395 << std::endl; 405 << std::endl;
396 } 406 }
397 } 407 }
398 408
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 } 507 }
498 508
499 void AecDumpBasedSimulator::HandleMessage( 509 void AecDumpBasedSimulator::HandleMessage(
500 const webrtc::audioproc::ReverseStream& msg) { 510 const webrtc::audioproc::ReverseStream& msg) {
501 PrepareReverseProcessStreamCall(msg); 511 PrepareReverseProcessStreamCall(msg);
502 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); 512 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface);
503 } 513 }
504 514
505 } // namespace test 515 } // namespace test
506 } // namespace webrtc 516 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/test/audio_processing_simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698