| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // for the recoring side (i.e. using the android.media.AudioRecord API). | 96 // for the recoring side (i.e. using the android.media.AudioRecord API). |
| 97 bool IsAcousticEchoCancelerSupported() const; | 97 bool IsAcousticEchoCancelerSupported() const; |
| 98 bool IsAutomaticGainControlSupported() const; | 98 bool IsAutomaticGainControlSupported() const; |
| 99 bool IsNoiseSuppressorSupported() const; | 99 bool IsNoiseSuppressorSupported() const; |
| 100 | 100 |
| 101 // Returns true if the device supports the low-latency audio paths in | 101 // Returns true if the device supports the low-latency audio paths in |
| 102 // combination with OpenSL ES. | 102 // combination with OpenSL ES. |
| 103 bool IsLowLatencyPlayoutSupported() const; | 103 bool IsLowLatencyPlayoutSupported() const; |
| 104 bool IsLowLatencyRecordSupported() const; | 104 bool IsLowLatencyRecordSupported() const; |
| 105 | 105 |
| 106 // Returns true if the device supports (and has been configured for) stereo. |
| 107 // Call the Java API WebRtcAudioManager.setStereoOutput/Input() with true as |
| 108 // paramter to enable stereo. Default is mono in both directions and the |
| 109 // setting is set once and for all when the audio manager object is created. |
| 110 // TODO(henrika): stereo is not supported in combination with OpenSL ES. |
| 111 bool IsStereoPlayoutSupported() const; |
| 112 bool IsStereoRecordSupported() const; |
| 113 |
| 106 // Returns true if the device supports pro-audio features in combination with | 114 // Returns true if the device supports pro-audio features in combination with |
| 107 // OpenSL ES. | 115 // OpenSL ES. |
| 108 bool IsProAudioSupported() const; | 116 bool IsProAudioSupported() const; |
| 109 | 117 |
| 110 // Returns the estimated total delay of this device. Unit is in milliseconds. | 118 // Returns the estimated total delay of this device. Unit is in milliseconds. |
| 111 // The vaule is set once at construction and never changes after that. | 119 // The vaule is set once at construction and never changes after that. |
| 112 // Possible values are webrtc::kLowLatencyModeDelayEstimateInMilliseconds and | 120 // Possible values are webrtc::kLowLatencyModeDelayEstimateInMilliseconds and |
| 113 // webrtc::kHighLatencyModeDelayEstimateInMilliseconds. | 121 // webrtc::kHighLatencyModeDelayEstimateInMilliseconds. |
| 114 int GetDelayEstimateInMilliseconds() const; | 122 int GetDelayEstimateInMilliseconds() const; |
| 115 | 123 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Contains native parameters (e.g. sample rate, channel configuration). | 207 // Contains native parameters (e.g. sample rate, channel configuration). |
| 200 // Set at construction in OnCacheAudioParameters() which is called from | 208 // Set at construction in OnCacheAudioParameters() which is called from |
| 201 // Java on the same thread as this object is created on. | 209 // Java on the same thread as this object is created on. |
| 202 AudioParameters playout_parameters_; | 210 AudioParameters playout_parameters_; |
| 203 AudioParameters record_parameters_; | 211 AudioParameters record_parameters_; |
| 204 }; | 212 }; |
| 205 | 213 |
| 206 } // namespace webrtc | 214 } // namespace webrtc |
| 207 | 215 |
| 208 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_MANAGER_H_ | 216 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_MANAGER_H_ |
| OLD | NEW |