Home
last modified time | relevance | path

Searched refs:audioTrack (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java191 private static int writeToAudioTrack(AudioTrack audioTrack, byte[] bytes) { in writeToAudioTrack() argument
192 if (audioTrack.getPlayState() != AudioTrack.PLAYSTATE_PLAYING) { in writeToAudioTrack()
193 if (DBG) Log.d(TAG, "AudioTrack not playing, restarting : " + audioTrack.hashCode()); in writeToAudioTrack()
194 audioTrack.play(); in writeToAudioTrack()
201 int written = audioTrack.write(bytes, count, bytes.length); in writeToAudioTrack()
221 AudioTrack audioTrack = new AudioTrack(mAudioParams.mAudioAttributes, in createStreamingAudioTrack() local
225 if (audioTrack.getState() != AudioTrack.STATE_INITIALIZED) { in createStreamingAudioTrack()
227 audioTrack.release(); in createStreamingAudioTrack()
233 setupVolume(audioTrack, mAudioParams.mVolume, mAudioParams.mPan); in createStreamingAudioTrack()
234 return audioTrack; in createStreamingAudioTrack()
[all …]
/frameworks/base/core/java/android/companion/virtual/audio/
DAudioInjection.java75 void setAudioTrack(@Nullable AudioTrack audioTrack) { in setAudioTrack() argument
76 Log.d(TAG, "set AudioTrack with " + audioTrack); in setAudioTrack()
79 if (audioTrack != null) { in setAudioTrack()
80 if (audioTrack.getState() != STATE_INITIALIZED) { in setAudioTrack()
85 && audioTrack.getPlayState() != PLAYSTATE_PLAYING) { in setAudioTrack()
86 audioTrack.play(); in setAudioTrack()
89 && audioTrack.getPlayState() != PLAYSTATE_STOPPED) { in setAudioTrack()
90 audioTrack.stop(); in setAudioTrack()
98 mAudioTrack = audioTrack; in setAudioTrack()
DVirtualAudioSession.java270 AudioTrack audioTrack = in createAudioStreams() local
278 mAudioInjection.setAudioTrack(audioTrack); in createAudioStreams()
/frameworks/base/media/java/android/media/
DMediaSync.java333 public void setAudioTrack(@Nullable AudioTrack audioTrack) { in setAudioTrack() argument
334 native_setAudioTrack(audioTrack); in setAudioTrack()
335 mAudioTrack = audioTrack; in setAudioTrack()
336 if (audioTrack != null && mAudioThread == null) { in setAudioTrack()
341 private native final void native_setAudioTrack(@Nullable AudioTrack audioTrack); in native_setAudioTrack() argument
DAudioTrack.java3844 public void onRoutingChanged(AudioTrack audioTrack); in onRoutingChanged() argument
3920 @NonNull AudioTrack audioTrack, @Nullable AudioMetadataReadMap info); in onCodecFormatChanged()
/frameworks/wilhelm/src/
Dlocks.cpp219 android::sp<android::AudioTrack> audioTrack; in object_unlock_exclusive_attributes_() local
230 audioTrack = ap->mTrackPlayer->mAudioTrack; in object_unlock_exclusive_attributes_()
262 if (audioTrack != 0) { in object_unlock_exclusive_attributes_()
263 audioTrack->start(); in object_unlock_exclusive_attributes_()
264 audioTrack.clear(); in object_unlock_exclusive_attributes_()
/frameworks/base/media/jni/
Dandroid_media_MediaSync.cpp68 status_t JMediaSync::setAudioTrack(const sp<AudioTrack> &audioTrack) { in setAudioTrack() argument
69 return mSync->setAudioTrack(audioTrack); in setAudioTrack()
213 sp<AudioTrack> audioTrack; in android_media_MediaSync_native_setAudioTrack() local
215 audioTrack = android_media_AudioTrack_getAudioTrack(env, jaudioTrack); in android_media_MediaSync_native_setAudioTrack()
216 if (audioTrack == NULL) { in android_media_MediaSync_native_setAudioTrack()
222 status_t err = sync->setAudioTrack(audioTrack); in android_media_MediaSync_native_setAudioTrack()
Dandroid_media_MediaSync.h37 status_t setAudioTrack(const sp<AudioTrack> &audioTrack);
/frameworks/av/media/libmediaplayerservice/nuplayer/
DStreamingSource.cpp195 sp<AnotherPacketSource> audioTrack = getSource(true /*audio*/); in haveSufficientDataOnAllTracks() local
200 if (audioTrack != NULL in haveSufficientDataOnAllTracks()
201 && (durationUs = audioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
/frameworks/av/media/libaudioclient/aidl/android/media/
DCreateTrackResponse.aidl47 @nullable IAudioTrack audioTrack;
/frameworks/av/media/libstagefright/
DMediaSync.cpp151 status_t MediaSync::setAudioTrack(const sp<AudioTrack> &audioTrack) { in setAudioTrack() argument
160 if (audioTrack == NULL && mSyncSettings.mSource == AVSYNC_SOURCE_AUDIO) { in setAudioTrack()
165 if (audioTrack != NULL) { in setAudioTrack()
168 && audioTrack->setPlaybackRate(mPlaybackSettings) != OK) { in setAudioTrack()
172 uint32_t nativeSampleRateInHz = audioTrack->getOriginalSampleRate(); in setAudioTrack()
177 mAudioTrack = audioTrack; in setAudioTrack()
/frameworks/av/media/libstagefright/webm/include/webm/
DWebmWriter.h124 static sp<WebmElement> audioTrack(const sp<MetaData>& md);
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaSync.h83 status_t setAudioTrack(const sp<AudioTrack> &audioTrack);
/frameworks/av/media/libstagefright/webm/
DWebmWriter.cpp75 mStreams[kAudioIndex] = WebmStream(kAudioType, "Audio", &WebmWriter::audioTrack); in WebmWriter()
115 sp<WebmElement> WebmWriter::audioTrack(const sp<MetaData>& md) { in audioTrack() function in android::WebmWriter
/frameworks/av/media/libaudioclient/include/media/
DAudioTrack.h1521 explicit DeathNotifier(AudioTrack* audioTrack) : mAudioTrack(audioTrack) { } in DeathNotifier() argument
DIAudioFlinger.h121 sp<media::IAudioTrack> audioTrack; variable
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp1986 ALOG_ASSERT(output.audioTrack != 0); in createTrack_l()
2010 output.audioTrack->getCblk(&sfr); in createTrack_l()
2033 mAudioTrack = output.audioTrack; in createTrack_l()
3824 sp<AudioTrack> audioTrack = mAudioTrack.promote(); in binderDied() local
3825 if (audioTrack != 0) { in binderDied()
3826 AutoMutex lock(audioTrack->mLock); in binderDied()
3827 audioTrack->mProxy->binderDied(); in binderDied()
DIAudioFlinger.cpp117 aidl.audioTrack = audioTrack; in toAidl()
140 legacy.audioTrack = aidl.audioTrack; in fromAidl()
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp1245 output.audioTrack = new TrackHandle(track); in createTrack()