| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // webrtc::kHighLatencyModeDelayEstimateInMilliseconds. | 113 // webrtc::kHighLatencyModeDelayEstimateInMilliseconds. |
| 114 int GetDelayEstimateInMilliseconds() const; | 114 int GetDelayEstimateInMilliseconds() const; |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 // Called from Java side so we can cache the native audio parameters. | 117 // Called from Java side so we can cache the native audio parameters. |
| 118 // This method will be called by the WebRtcAudioManager constructor, i.e. | 118 // This method will be called by the WebRtcAudioManager constructor, i.e. |
| 119 // on the same thread that this object is created on. | 119 // on the same thread that this object is created on. |
| 120 static void JNICALL CacheAudioParameters(JNIEnv* env, | 120 static void JNICALL CacheAudioParameters(JNIEnv* env, |
| 121 jobject obj, | 121 jobject obj, |
| 122 jint sample_rate, | 122 jint sample_rate, |
| 123 jint channels, | 123 jint output_channels, |
| 124 jint input_channels, |
| 124 jboolean hardware_aec, | 125 jboolean hardware_aec, |
| 125 jboolean hardware_agc, | 126 jboolean hardware_agc, |
| 126 jboolean hardware_ns, | 127 jboolean hardware_ns, |
| 127 jboolean low_latency_output, | 128 jboolean low_latency_output, |
| 128 jboolean low_latency_input, | 129 jboolean low_latency_input, |
| 129 jboolean pro_audio, | 130 jboolean pro_audio, |
| 130 jint output_buffer_size, | 131 jint output_buffer_size, |
| 131 jint input_buffer_size, | 132 jint input_buffer_size, |
| 132 jlong native_audio_manager); | 133 jlong native_audio_manager); |
| 133 void OnCacheAudioParameters(JNIEnv* env, | 134 void OnCacheAudioParameters(JNIEnv* env, |
| 134 jint sample_rate, | 135 jint sample_rate, |
| 135 jint channels, | 136 jint output_channels, |
| 137 jint input_channels, |
| 136 jboolean hardware_aec, | 138 jboolean hardware_aec, |
| 137 jboolean hardware_agc, | 139 jboolean hardware_agc, |
| 138 jboolean hardware_ns, | 140 jboolean hardware_ns, |
| 139 jboolean low_latency_output, | 141 jboolean low_latency_output, |
| 140 jboolean low_latency_input, | 142 jboolean low_latency_input, |
| 141 jboolean pro_audio, | 143 jboolean pro_audio, |
| 142 jint output_buffer_size, | 144 jint output_buffer_size, |
| 143 jint input_buffer_size); | 145 jint input_buffer_size); |
| 144 | 146 |
| 145 // Stores thread ID in the constructor. | 147 // Stores thread ID in the constructor. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // Contains native parameters (e.g. sample rate, channel configuration). | 199 // Contains native parameters (e.g. sample rate, channel configuration). |
| 198 // Set at construction in OnCacheAudioParameters() which is called from | 200 // Set at construction in OnCacheAudioParameters() which is called from |
| 199 // Java on the same thread as this object is created on. | 201 // Java on the same thread as this object is created on. |
| 200 AudioParameters playout_parameters_; | 202 AudioParameters playout_parameters_; |
| 201 AudioParameters record_parameters_; | 203 AudioParameters record_parameters_; |
| 202 }; | 204 }; |
| 203 | 205 |
| 204 } // namespace webrtc | 206 } // namespace webrtc |
| 205 | 207 |
| 206 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_MANAGER_H_ | 208 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_AUDIO_MANAGER_H_ |
| OLD | NEW |