Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: webrtc/modules/audio_device/android/opensles_player.h

Issue 1944883002: Move ADM Create() method to public interface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/android/audio_track_jni.h ('k') | webrtc/modules/audio_device/audio_device_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698