| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 #endif | 626 #endif |
| 627 | 627 |
| 628 #if defined(WEBRTC_IOS) || defined(ANDROID) | 628 #if defined(WEBRTC_IOS) || defined(ANDROID) |
| 629 // Set the AGC mode for iOS as well despite disabling it above, to avoid | 629 // Set the AGC mode for iOS as well despite disabling it above, to avoid |
| 630 // unsupported configuration errors from webrtc. | 630 // unsupported configuration errors from webrtc. |
| 631 agc_mode = webrtc::kAgcFixedDigital; | 631 agc_mode = webrtc::kAgcFixedDigital; |
| 632 options.typing_detection = rtc::Optional<bool>(false); | 632 options.typing_detection = rtc::Optional<bool>(false); |
| 633 options.experimental_agc = rtc::Optional<bool>(false); | 633 options.experimental_agc = rtc::Optional<bool>(false); |
| 634 options.extended_filter_aec = rtc::Optional<bool>(false); | 634 options.extended_filter_aec = rtc::Optional<bool>(false); |
| 635 options.experimental_ns = rtc::Optional<bool>(false); | 635 options.experimental_ns = rtc::Optional<bool>(false); |
| 636 |
| 637 // Hardcode the intelligibility enhancer to be off. |
| 638 options.intelligibility_enhancer = rtc::Optional<bool>(false); |
| 636 #endif | 639 #endif |
| 637 | 640 |
| 638 // Delay Agnostic AEC automatically turns on EC if not set except on iOS | 641 // Delay Agnostic AEC automatically turns on EC if not set except on iOS |
| 639 // where the feature is not supported. | 642 // where the feature is not supported. |
| 640 bool use_delay_agnostic_aec = false; | 643 bool use_delay_agnostic_aec = false; |
| 641 #if !defined(WEBRTC_IOS) | 644 #if !defined(WEBRTC_IOS) |
| 642 if (options.delay_agnostic_aec) { | 645 if (options.delay_agnostic_aec) { |
| 643 use_delay_agnostic_aec = *options.delay_agnostic_aec; | 646 use_delay_agnostic_aec = *options.delay_agnostic_aec; |
| 644 if (use_delay_agnostic_aec) { | 647 if (use_delay_agnostic_aec) { |
| 645 options.echo_cancellation = rtc::Optional<bool>(true); | 648 options.echo_cancellation = rtc::Optional<bool>(true); |
| (...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2650 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 2653 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 2651 const auto it = send_streams_.find(ssrc); | 2654 const auto it = send_streams_.find(ssrc); |
| 2652 if (it != send_streams_.end()) { | 2655 if (it != send_streams_.end()) { |
| 2653 return it->second->channel(); | 2656 return it->second->channel(); |
| 2654 } | 2657 } |
| 2655 return -1; | 2658 return -1; |
| 2656 } | 2659 } |
| 2657 } // namespace cricket | 2660 } // namespace cricket |
| 2658 | 2661 |
| 2659 #endif // HAVE_WEBRTC_VOICE | 2662 #endif // HAVE_WEBRTC_VOICE |
| OLD | NEW |