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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // Stores thread ID in first call to SimpleBufferQueueCallback() from internal | 125 // Stores thread ID in first call to SimpleBufferQueueCallback() from internal |
126 // non-application thread which is not attached to the Dalvik JVM. | 126 // non-application thread which is not attached to the Dalvik JVM. |
127 // Detached during construction of this object. | 127 // Detached during construction of this object. |
128 rtc::ThreadChecker thread_checker_opensles_; | 128 rtc::ThreadChecker thread_checker_opensles_; |
129 | 129 |
130 // Contains audio parameters provided to this class at construction by the | 130 // Contains audio parameters provided to this class at construction by the |
131 // AudioManager. | 131 // AudioManager. |
132 const AudioParameters audio_parameters_; | 132 const AudioParameters audio_parameters_; |
133 | 133 |
134 // Raw pointer handle provided to us in AttachAudioBuffer(). Owned by the | 134 // Raw pointer handle provided to us in AttachAudioBuffer(). Owned by the |
135 // AudioDeviceModuleImpl class and called by AudioDeviceModuleImpl::Create(). | 135 // AudioDeviceModuleImpl class and called by AudioDeviceModule::Create(). |
136 AudioDeviceBuffer* audio_device_buffer_; | 136 AudioDeviceBuffer* audio_device_buffer_; |
137 | 137 |
138 bool initialized_; | 138 bool initialized_; |
139 bool playing_; | 139 bool playing_; |
140 | 140 |
141 // PCM-type format definition. | 141 // PCM-type format definition. |
142 // TODO(henrika): add support for SLAndroidDataFormat_PCM_EX (android-21) if | 142 // TODO(henrika): add support for SLAndroidDataFormat_PCM_EX (android-21) if |
143 // 32-bit float representation is needed. | 143 // 32-bit float representation is needed. |
144 SLDataFormat_PCM pcm_format_; | 144 SLDataFormat_PCM pcm_format_; |
145 | 145 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // properties. This interface is supported on the Audio Player object. | 197 // properties. This interface is supported on the Audio Player object. |
198 SLVolumeItf volume_; | 198 SLVolumeItf volume_; |
199 | 199 |
200 // Last time the OpenSL ES layer asked for audio data to play out. | 200 // Last time the OpenSL ES layer asked for audio data to play out. |
201 uint32_t last_play_time_; | 201 uint32_t last_play_time_; |
202 }; | 202 }; |
203 | 203 |
204 } // namespace webrtc | 204 } // namespace webrtc |
205 | 205 |
206 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_OPENSLES_PLAYER_H_ | 206 #endif // WEBRTC_MODULES_AUDIO_DEVICE_ANDROID_OPENSLES_PLAYER_H_ |
OLD | NEW |