| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2013 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 29 matching lines...) Expand all Loading... |
| 40 options->extended_filter_aec}, | 40 options->extended_filter_aec}, |
| 41 {MediaConstraintsInterface::kDAEchoCancellation, | 41 {MediaConstraintsInterface::kDAEchoCancellation, |
| 42 options->delay_agnostic_aec}, | 42 options->delay_agnostic_aec}, |
| 43 {MediaConstraintsInterface::kAutoGainControl, options->auto_gain_control}, | 43 {MediaConstraintsInterface::kAutoGainControl, options->auto_gain_control}, |
| 44 {MediaConstraintsInterface::kExperimentalAutoGainControl, | 44 {MediaConstraintsInterface::kExperimentalAutoGainControl, |
| 45 options->experimental_agc}, | 45 options->experimental_agc}, |
| 46 {MediaConstraintsInterface::kNoiseSuppression, | 46 {MediaConstraintsInterface::kNoiseSuppression, |
| 47 options->noise_suppression}, | 47 options->noise_suppression}, |
| 48 {MediaConstraintsInterface::kExperimentalNoiseSuppression, | 48 {MediaConstraintsInterface::kExperimentalNoiseSuppression, |
| 49 options->experimental_ns}, | 49 options->experimental_ns}, |
| 50 {MediaConstraintsInterface::kIntelligibilityEnhancer, |
| 51 options->intelligibility_enhancer}, |
| 50 {MediaConstraintsInterface::kHighpassFilter, options->highpass_filter}, | 52 {MediaConstraintsInterface::kHighpassFilter, options->highpass_filter}, |
| 51 {MediaConstraintsInterface::kTypingNoiseDetection, | 53 {MediaConstraintsInterface::kTypingNoiseDetection, |
| 52 options->typing_detection}, | 54 options->typing_detection}, |
| 53 {MediaConstraintsInterface::kAudioMirroring, options->stereo_swapping} | 55 {MediaConstraintsInterface::kAudioMirroring, options->stereo_swapping} |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 for (const auto& constraint : constraints) { | 58 for (const auto& constraint : constraints) { |
| 57 bool value = false; | 59 bool value = false; |
| 58 if (!rtc::FromString(constraint.value, &value)) | 60 if (!rtc::FromString(constraint.value, &value)) |
| 59 continue; | 61 continue; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void LocalAudioSource::Initialize( | 105 void LocalAudioSource::Initialize( |
| 104 const PeerConnectionFactoryInterface::Options& options, | 106 const PeerConnectionFactoryInterface::Options& options, |
| 105 const cricket::AudioOptions* audio_options) { | 107 const cricket::AudioOptions* audio_options) { |
| 106 if (!audio_options) | 108 if (!audio_options) |
| 107 return; | 109 return; |
| 108 | 110 |
| 109 options_ = *audio_options; | 111 options_ = *audio_options; |
| 110 } | 112 } |
| 111 | 113 |
| 112 } // namespace webrtc | 114 } // namespace webrtc |
| OLD | NEW |