Home
last modified time | relevance | path

Searched refs:mAudioTrack (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp150 mAudioTrack = new AudioTrack(); in open()
151 mAudioTrack->set( in open()
177 status_t status = mAudioTrack->initCheck(); in open()
187 setSamplesPerFrame(mAudioTrack->channelCount()); in open()
188 setFormat(mAudioTrack->format()); in open()
189 setDeviceFormat(mAudioTrack->format()); in open()
191 int32_t actualSampleRate = mAudioTrack->getSampleRate(); in open()
207 setDeviceId(mAudioTrack->getRoutedDeviceId()); in open()
212 : (aaudio_session_id_t) mAudioTrack->getSessionId(); in open()
215 mAudioTrack->addAudioDeviceCallback(mDeviceCallback); in open()
[all …]
DAudioStreamTrack.h100 android::sp<android::AudioTrack> mAudioTrack;
/frameworks/av/media/libaudioclient/
DTrackPlayerBase.cpp38 mAudioTrack = pat; in init()
47 if (mAudioTrack != 0) { in doDestroy()
48 mAudioTrack->stop(); in doDestroy()
50 mAudioTrack.clear(); in doDestroy()
67 if (mAudioTrack != 0) { in playerStart()
68 status = mAudioTrack->start(); in playerStart()
75 if (mAudioTrack != 0) { in playerPause()
76 mAudioTrack->pause(); in playerPause()
85 if (mAudioTrack != 0) { in playerStop()
86 mAudioTrack->stop(); in playerStop()
[all …]
DAudioTrack.cpp314 IInterface::asBinder(mAudioTrack)->unlinkToDeath(mDeathNotifier, this); in ~AudioTrack()
315 mAudioTrack.clear(); in ~AudioTrack()
415 if (mAudioTrack != 0) { in set()
708 status = mAudioTrack->start(); in start()
770 mAudioTrack->stop(); in stop()
832 mAudioTrack->flush(); in flush_l()
848 mAudioTrack->pause(); in pause()
886 mAudioTrack->signal(); in setVolume()
1342 status_t status = mAudioTrack->attachAuxEffect(effectId); in attachAuxEffect()
1518 if (mAudioTrack != 0) { in createTrack_l()
[all …]
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java73 private AudioTrack mAudioTrack; field in BlockingAudioTrack
90 mAudioTrack = null; in BlockingAudioTrack()
97 mAudioTrack = track; in init()
109 if (mAudioTrack != null) { in stop()
110 mAudioTrack.stop(); in stop()
119 track = mAudioTrack; in write()
134 track = mAudioTrack; in waitAndRelease()
159 if (DBG) Log.d(TAG, "Waiting for audio track to complete : " + mAudioTrack.hashCode()); in waitAndRelease()
160 blockUntilDone(mAudioTrack); in waitAndRelease()
168 mAudioTrack = null; in waitAndRelease()
[all …]
DSynthesisPlaybackQueueItem.java67 private final BlockingAudioTrack mAudioTrack; field in SynthesisPlaybackQueueItem
90 mAudioTrack = new BlockingAudioTrack(audioParams, sampleRate, audioFormat, channelCount); in SynthesisPlaybackQueueItem()
105 if (!mAudioTrack.init()) { in run()
110 mAudioTrack.setPlaybackPositionUpdateListener(this); in run()
124 mAudioTrack.write(buffer); in run()
132 mAudioTrack.waitAndRelease(); in run()
185 mAudioTrack.stop(); in stop()
233 mAudioTrack.setNotificationMarkerPosition(markerInFrames); in updateMarker()
265 while ((unconsumedAudioMs = mAudioTrack.getAudioLengthMs(mUnconsumedBytes)) > in put()
/frameworks/av/cmds/stagefright/
DAudioPlayer.cpp247 mAudioTrack = new AudioTrack( in start()
252 if ((err = mAudioTrack->initCheck()) != OK) { in start()
253 mAudioTrack.clear(); in start()
267 mLatencyUs = (int64_t)mAudioTrack->latency() * 1000; in start()
268 mFrameSize = mAudioTrack->frameSize(); in start()
270 mAudioTrack->start(); in start()
286 mAudioTrack->stop(); in pause()
295 mAudioTrack->pause(); in pause()
309 err = mAudioTrack->start(); in resume()
342 mAudioTrack->stop(); in reset()
[all …]
DSimplePlayer.cpp535 if (state->mAudioTrack != NULL) { in onDoMoreStuff()
589 state->mAudioTrack = new AudioTrack( in onOutputFormatChanged()
604 CHECK(state->mAudioTrack != NULL); in renderAudio()
606 if (state->mAudioTrack->stopped()) { in renderAudio()
607 state->mAudioTrack->start(); in renderAudio()
611 CHECK_EQ(state->mAudioTrack->getPosition(&numFramesPlayed), (status_t)OK); in renderAudio()
614 state->mAudioTrack->frameCount() in renderAudio()
618 numFramesAvailableToWrite * state->mAudioTrack->frameSize(); in renderAudio()
631 ssize_t nbytes = state->mAudioTrack->write( in renderAudio()
638 uint32_t numFramesWritten = nbytes / state->mAudioTrack->frameSize(); in renderAudio()
DSimplePlayer.h82 sp<AudioTrack> mAudioTrack; member
DAudioPlayer.h70 sp<AudioTrack> mAudioTrack; variable
/frameworks/base/media/jni/
DJetPlayer.cpp87 mAudioTrack = new AudioTrack(); in init()
88 status_t status = mAudioTrack->set(AUDIO_STREAM_MUSIC, //TODO parameterize this in init()
96 mAudioTrack.clear(); in init()
143 if (mAudioTrack != 0) { in release()
144 mAudioTrack->stop(); in release()
145 mAudioTrack->flush(); in release()
146 mAudioTrack.clear(); in release()
194 mAudioTrack->pause(); in render()
226 if (mAudioTrack == NULL) { in render()
233 if ((temp = mAudioTrack->write(mAudioBuffer, num_output)) < 0) { in render()
[all …]
DJetPlayer.h92 sp<AudioTrack> mAudioTrack; // and we play it in this audio track variable
/frameworks/base/media/java/android/media/
DMediaSync.java200 private AudioTrack mAudioTrack = null; field in MediaSync
335 mAudioTrack = audioTrack; in setAudioTrack()
446 if (mAudioTrack != null) { in flush()
447 mAudioTrack.pause(); in flush()
448 mAudioTrack.flush(); in flush()
451 mAudioTrack.stop(); in flush()
509 if (mAudioTrack == null || mAudioThread == null) { in queueAudio()
539 if (size > 0 && mAudioTrack.getPlayState() != AudioTrack.PLAYSTATE_PLAYING) { in postRenderAudio()
541 mAudioTrack.play(); in postRenderAudio()
546 int sizeWritten = mAudioTrack.write( in postRenderAudio()
/frameworks/av/media/libstagefright/
DMediaSync.cpp155 if (mAudioTrack != NULL) { in setAudioTrack()
177 mAudioTrack = audioTrack; in setAudioTrack()
182 mAudioTrack = NULL; in setAudioTrack()
236 if (mAudioTrack != NULL) { in resync_l()
271 if (mAudioTrack != NULL) { in getPlayTimeForPendingAudioFrames()
272 status_t res = mAudioTrack->getPosition(&numFramesPlayed); in getPlayTimeForPendingAudioFrames()
305 if (mAudioTrack == NULL) { in updateQueuedAudioData()
310 int64_t numFrames = sizeInBytes / mAudioTrack->frameSize(); in updateQueuedAudioData()
401 if (mAudioTrack == NULL) { in setSyncSettings()
444 if (mAudioTrack != NULL) { in setPlaybackSettings_l()
[all …]
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp777 if (mAudioTrack != 0 && mPrevSampleID == sample->sampleID()) { in play()
779 if (mAudioTrack->setSampleRate(sampleRate) == NO_ERROR) { in play()
780 newTrack = mAudioTrack; in play()
781 ALOGV("reusing track %p for sample %d", mAudioTrack.get(), sample->sampleID()); in play()
812 oldTrack = mAudioTrack; in play()
821 mAudioTrack = newTrack; in play()
841 mAudioTrack->start(); in play()
848 mAudioTrack.clear(); in play()
983 mAudioTrack->stop(); in doStop_l()
1022 mAudioTrack->pause(); in pause()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DRTSPSource.cpp176 if ((mAudioTrack != NULL && mAudioTrack->isFinished(mediaDurationUs)) in haveSufficientDataOnAllTracks()
183 if (mAudioTrack != NULL in haveSufficientDataOnAllTracks()
184 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
264 return audio ? mAudioTrack : mVideoTrack; in getSource()
279 if (mAudioTrack != NULL in getDuration()
280 && mAudioTrack->getFormat()->findInt64( in getDuration()
726 CHECK(mAudioTrack == NULL); in onConnected()
754 if ((isAudio && mAudioTrack == NULL) in onConnected()
759 mAudioTrack = source; in onConnected()
DGenericSource.cpp233 if (mAudioTrack.mSource == NULL) { in initFromDataSource()
234 mAudioTrack.mIndex = i; in initFromDataSource()
235 mAudioTrack.mSource = track; in initFromDataSource()
236 mAudioTrack.mPackets = in initFromDataSource()
237 new AnotherPacketSource(mAudioTrack.mSource->getFormat()); in initFromDataSource()
318 if (mAudioTrack.mSource != NULL && mAudioTrack.mSource->start() != OK) { in startSources()
332 if (mAudioTrack.mSource != NULL) { in getLastReadPosition()
520 if (mAudioTrack.mSource != NULL) { in finishPrepareAsync()
550 if (mAudioTrack.mSource != NULL) { in start()
668 track = &mAudioTrack; in onMessageReceived()
[all …]
DRTSPSource.h120 sp<AnotherPacketSource> mAudioTrack; member
DGenericSource.h128 Track mAudioTrack; member
/frameworks/wilhelm/src/android/
DAudioPlayer_to_android.cpp624 if ((ap->mTrackPlayer->mAudioTrack != 0) && (ap->mAuxEffect != 0)) { in audioPlayer_auxEffectUpdate()
878 if ((ap->mTrackPlayer->mAudioTrack != 0) && (!ap->mSeek.mLoopEnabled)) { in sfplayer_handlePrefetchEvent()
879 ap->mTrackPlayer->mAudioTrack->stop(); in sfplayer_handlePrefetchEvent()
1595 audio_output_flags_t flags = pAudioPlayer->mTrackPlayer->mAudioTrack->getFlags(); in checkAndSetPerformanceModePost()
1735 (jlong)pAudioPlayer->mTrackPlayer->mAudioTrack.get()); in android_audioPlayer_realize()
1739 pAudioPlayer->mTrackPlayer->mAudioTrack.clear(); in android_audioPlayer_realize()
2025 if (ap->mTrackPlayer->mAudioTrack != 0) { in android_audioPlayer_setPlaybackRateAndConstraints()
2026 ap->mTrackPlayer->mAudioTrack->setSampleRate(contentRate * (rate/1000.0f)); in android_audioPlayer_setPlaybackRateAndConstraints()
2244 if (ap->mTrackPlayer->mAudioTrack != 0) { in android_audioPlayer_setPlayState()
2301 assert(ap->mTrackPlayer->mAudioTrack == 0); in android_audioPlayer_usePlayEventMask()
[all …]
Dandroid_Effect.cpp513 assert(ap->mTrackPlayer->mAudioTrack == 0); in android_fxSend_attach()
523 if (ap->mTrackPlayer->mAudioTrack == 0) { in android_fxSend_attach()
537 android::status_t status = ap->mTrackPlayer->mAudioTrack->attachAuxEffect(pFx->id()); in android_fxSend_attach()
541 ap->mTrackPlayer->mAudioTrack->setAuxEffectSendLevel( in android_fxSend_attach()
546 return ap->mTrackPlayer->mAudioTrack->attachAuxEffect(0); in android_fxSend_attach()
595 assert(ap->mTrackPlayer->mAudioTrack == 0); in android_fxSend_setSendLevel()
600 if (ap->mTrackPlayer->mAudioTrack == 0) { in android_fxSend_setSendLevel()
604 return ap->mTrackPlayer->mAudioTrack->setAuxEffectSendLevel( in android_fxSend_setSendLevel()
/frameworks/av/media/libaudioclient/include/media/
DTrackPlayerBase.h40 sp<AudioTrack> mAudioTrack; variable
DAudioTrack.h1029 sp<IAudioTrack> mAudioTrack; variable
1224 DeathNotifier(AudioTrack* audioTrack) : mAudioTrack(audioTrack) { } in DeathNotifier()
1228 const wp<AudioTrack> mAudioTrack;
/frameworks/wilhelm/src/itf/
DIAndroidEffect.cpp31 if (ap->mTrackPlayer->mAudioTrack != 0) { in IAndroidEffect_CreateEffect()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaSync.h202 sp<AudioTrack> mAudioTrack; variable

12