OLD | NEW |
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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 : msg.intelligibility_enhancer_enabled(); | 392 : msg.intelligibility_enhancer_enabled(); |
393 config.Set<Intelligibility>(new Intelligibility(enable)); | 393 config.Set<Intelligibility>(new Intelligibility(enable)); |
394 if (settings_.use_verbose_logging) { | 394 if (settings_.use_verbose_logging) { |
395 std::cout << " intelligibility_enhancer_enabled: " | 395 std::cout << " intelligibility_enhancer_enabled: " |
396 << (enable ? "true" : "false") << std::endl; | 396 << (enable ? "true" : "false") << std::endl; |
397 } | 397 } |
398 } | 398 } |
399 | 399 |
400 if (msg.has_hpf_enabled() || settings_.use_hpf) { | 400 if (msg.has_hpf_enabled() || settings_.use_hpf) { |
401 bool enable = settings_.use_hpf ? *settings_.use_hpf : msg.hpf_enabled(); | 401 bool enable = settings_.use_hpf ? *settings_.use_hpf : msg.hpf_enabled(); |
402 RTC_CHECK_EQ(AudioProcessing::kNoError, | 402 apm_config.high_pass_filter.enabled = enable; |
403 ap_->high_pass_filter()->Enable(enable)); | |
404 if (settings_.use_verbose_logging) { | 403 if (settings_.use_verbose_logging) { |
405 std::cout << " hpf_enabled: " << (enable ? "true" : "false") | 404 std::cout << " hpf_enabled: " << (enable ? "true" : "false") |
406 << std::endl; | 405 << std::endl; |
407 } | 406 } |
408 } | 407 } |
409 | 408 |
410 if (msg.has_ns_enabled() || settings_.use_ns) { | 409 if (msg.has_ns_enabled() || settings_.use_ns) { |
411 bool enable = settings_.use_ns ? *settings_.use_ns : msg.ns_enabled(); | 410 bool enable = settings_.use_ns ? *settings_.use_ns : msg.ns_enabled(); |
412 RTC_CHECK_EQ(AudioProcessing::kNoError, | 411 RTC_CHECK_EQ(AudioProcessing::kNoError, |
413 ap_->noise_suppression()->Enable(enable)); | 412 ap_->noise_suppression()->Enable(enable)); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 } | 512 } |
514 | 513 |
515 void AecDumpBasedSimulator::HandleMessage( | 514 void AecDumpBasedSimulator::HandleMessage( |
516 const webrtc::audioproc::ReverseStream& msg) { | 515 const webrtc::audioproc::ReverseStream& msg) { |
517 PrepareReverseProcessStreamCall(msg); | 516 PrepareReverseProcessStreamCall(msg); |
518 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); | 517 ProcessReverseStream(interface_used_ == InterfaceType::kFixedInterface); |
519 } | 518 } |
520 | 519 |
521 } // namespace test | 520 } // namespace test |
522 } // namespace webrtc | 521 } // namespace webrtc |
OLD | NEW |