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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |