Home
last modified time | relevance | path

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

12

/frameworks/av/media/libaudioclient/
DTrackPlayerBase.cpp36 mAudioTrack = pat; in init()
45 if (mAudioTrack != 0) { in doDestroy()
46 mAudioTrack->stop(); in doDestroy()
48 mAudioTrack.clear(); in doDestroy()
65 if (mAudioTrack != 0) { in playerStart()
66 status = mAudioTrack->start(); in playerStart()
73 if (mAudioTrack != 0) { in playerPause()
74 mAudioTrack->pause(); in playerPause()
83 if (mAudioTrack != 0) { in playerStop()
84 mAudioTrack->stop(); in playerStop()
[all …]
DAudioTrack.cpp276 IInterface::asBinder(mAudioTrack)->unlinkToDeath(mDeathNotifier, this); in ~AudioTrack()
277 mAudioTrack.clear(); in ~AudioTrack()
358 if (mAudioTrack != 0) { in set()
632 status = mAudioTrack->start(); in start()
691 mAudioTrack->stop(); in stop()
747 mAudioTrack->flush(); in flush_l()
761 mAudioTrack->pause(); in pause()
798 mAudioTrack->signal(); in setVolume()
1235 status_t status = mAudioTrack->attachAuxEffect(effectId); in attachAuxEffect()
1465 if (mAudioTrack != 0) { in createTrack_l()
[all …]
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp118 mAudioTrack = new AudioTrack(); in open()
120 mAudioTrack->setOutputDevice(getDeviceId()); in open()
122 mAudioTrack->set( in open()
139 status_t status = mAudioTrack->initCheck(); in open()
147 init(mAudioTrack.get(), PLAYER_TYPE_AAUDIO, AUDIO_USAGE_MEDIA); in open()
150 setSamplesPerFrame(mAudioTrack->channelCount()); in open()
152 AAudioConvert_androidToAAudioDataFormat(mAudioTrack->format()); in open()
155 int32_t actualSampleRate = mAudioTrack->getSampleRate(); in open()
171 setDeviceId(mAudioTrack->getRoutedDeviceId()); in open()
172 mAudioTrack->addAudioDeviceCallback(mDeviceCallback); in open()
[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.java66 private final BlockingAudioTrack mAudioTrack; field in SynthesisPlaybackQueueItem
84 mAudioTrack = new BlockingAudioTrack(audioParams, sampleRate, audioFormat, channelCount); in SynthesisPlaybackQueueItem()
94 if (!mAudioTrack.init()) { in run()
99 mAudioTrack.setPlaybackPositionUpdateListener(this); in run()
113 mAudioTrack.write(buffer); in run()
121 mAudioTrack.waitAndRelease(); in run()
161 mAudioTrack.stop(); in stop()
209 mAudioTrack.setNotificationMarkerPosition(markerInFrames); in updateMarker()
241 while ((unconsumedAudioMs = mAudioTrack.getAudioLengthMs(mUnconsumedBytes)) > in put()
/frameworks/av/media/libstagefright/
DAudioPlayer.cpp239 mAudioTrack = new AudioTrack( in start()
244 if ((err = mAudioTrack->initCheck()) != OK) { in start()
245 mAudioTrack.clear(); in start()
259 mLatencyUs = (int64_t)mAudioTrack->latency() * 1000; in start()
260 mFrameSize = mAudioTrack->frameSize(); in start()
262 mAudioTrack->start(); in start()
278 mAudioTrack->stop(); in pause()
287 mAudioTrack->pause(); in pause()
301 err = mAudioTrack->start(); in resume()
334 mAudioTrack->stop(); in reset()
[all …]
DMediaSync.cpp152 if (mAudioTrack != NULL) { in setAudioTrack()
174 mAudioTrack = audioTrack; in setAudioTrack()
179 mAudioTrack = NULL; in setAudioTrack()
233 if (mAudioTrack != NULL) { in resync_l()
268 if (mAudioTrack != NULL) { in getPlayTimeForPendingAudioFrames()
269 status_t res = mAudioTrack->getPosition(&numFramesPlayed); in getPlayTimeForPendingAudioFrames()
302 if (mAudioTrack == NULL) { in updateQueuedAudioData()
307 int64_t numFrames = sizeInBytes / mAudioTrack->frameSize(); in updateQueuedAudioData()
398 if (mAudioTrack == NULL) { in setSyncSettings()
441 if (mAudioTrack != NULL) { in setPlaybackSettings_l()
[all …]
/frameworks/av/media/libmedia/
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()
142 if (mAudioTrack != 0) { in release()
143 mAudioTrack->stop(); in release()
144 mAudioTrack->flush(); in release()
145 mAudioTrack.clear(); in release()
193 mAudioTrack->pause(); in render()
225 if (mAudioTrack == NULL) { in render()
232 if ((temp = mAudioTrack->write(mAudioBuffer, num_output)) < 0) { in render()
[all …]
/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/base/media/jni/soundpool/
DSoundPool.cpp772 if (mAudioTrack != 0 && mPrevSampleID == sample->sampleID()) { in play()
774 if (mAudioTrack->setSampleRate(sampleRate) == NO_ERROR) { in play()
775 newTrack = mAudioTrack; in play()
776 ALOGV("reusing track %p for sample %d", mAudioTrack.get(), sample->sampleID()); in play()
803 oldTrack = mAudioTrack; in play()
812 mAudioTrack = newTrack; in play()
828 mAudioTrack->start(); in play()
835 mAudioTrack.clear(); in play()
958 mAudioTrack->stop(); in doStop_l()
997 mAudioTrack->pause(); in pause()
[all …]
/frameworks/av/cmds/stagefright/
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
/frameworks/av/media/libmediaplayerservice/nuplayer/
DRTSPSource.cpp190 if ((mAudioTrack != NULL && mAudioTrack->isFinished(mediaDurationUs)) in haveSufficientDataOnAllTracks()
197 if (mAudioTrack != NULL in haveSufficientDataOnAllTracks()
198 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
278 return audio ? mAudioTrack : mVideoTrack; in getSource()
293 if (mAudioTrack != NULL in getDuration()
294 && mAudioTrack->getFormat()->findInt64( in getDuration()
761 CHECK(mAudioTrack == NULL); in onConnected()
789 if ((isAudio && mAudioTrack == NULL) in onConnected()
794 mAudioTrack = source; in onConnected()
DGenericSource.cpp204 if (mAudioTrack.mSource == NULL) { in initFromDataSource()
205 mAudioTrack.mIndex = i; in initFromDataSource()
206 mAudioTrack.mSource = track; in initFromDataSource()
207 mAudioTrack.mPackets = in initFromDataSource()
208 new AnotherPacketSource(mAudioTrack.mSource->getFormat()); in initFromDataSource()
280 if (mAudioTrack.mSource != NULL && mAudioTrack.mSource->start() != OK) { in startSources()
294 if (mAudioTrack.mSource != NULL) { in getLastReadPosition()
505 if (mAudioTrack.mSource != NULL) { in start()
606 track = &mAudioTrack; in onMessageReceived()
839 sp<IMediaSource> source = audio ? mAudioTrack.mSource : mVideoTrack.mSource; in doGetFormatMeta()
[all …]
DRTSPSource.h119 sp<AnotherPacketSource> 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()
1593 audio_output_flags_t flags = pAudioPlayer->mTrackPlayer->mAudioTrack->getFlags(); in checkAndSetPerformanceModePost()
1730 (jlong)pAudioPlayer->mTrackPlayer->mAudioTrack.get()); in android_audioPlayer_realize()
1734 pAudioPlayer->mTrackPlayer->mAudioTrack.clear(); in android_audioPlayer_realize()
2013 if (ap->mTrackPlayer->mAudioTrack != 0) { in android_audioPlayer_setPlaybackRateAndConstraints()
2014 ap->mTrackPlayer->mAudioTrack->setSampleRate(contentRate * (rate/1000.0f)); in android_audioPlayer_setPlaybackRateAndConstraints()
2232 if (ap->mTrackPlayer->mAudioTrack != 0) { in android_audioPlayer_setPlayState()
2287 assert(ap->mTrackPlayer->mAudioTrack == 0); in android_audioPlayer_usePlayEventMask()
[all …]
Dandroid_Effect.cpp511 assert(ap->mTrackPlayer->mAudioTrack == 0); in android_fxSend_attach()
521 if (ap->mTrackPlayer->mAudioTrack == 0) { in android_fxSend_attach()
535 android::status_t status = ap->mTrackPlayer->mAudioTrack->attachAuxEffect(pFx->id()); in android_fxSend_attach()
539 ap->mTrackPlayer->mAudioTrack->setAuxEffectSendLevel( in android_fxSend_attach()
544 return ap->mTrackPlayer->mAudioTrack->attachAuxEffect(0); in android_fxSend_attach()
593 assert(ap->mTrackPlayer->mAudioTrack == 0); in android_fxSend_setSendLevel()
598 if (ap->mTrackPlayer->mAudioTrack == 0) { in android_fxSend_setSendLevel()
602 return ap->mTrackPlayer->mAudioTrack->setAuxEffectSendLevel( in android_fxSend_setSendLevel()
/frameworks/av/media/libaudioclient/include/media/
DTrackPlayerBase.h40 sp<AudioTrack> mAudioTrack; variable
DAudioTrack.h970 sp<IAudioTrack> mAudioTrack; variable
1143 DeathNotifier(AudioTrack* audioTrack) : mAudioTrack(audioTrack) { } in DeathNotifier()
1147 const wp<AudioTrack> mAudioTrack;
/frameworks/av/include/media/
DAudioTrack.h970 sp<IAudioTrack> mAudioTrack; variable
1143 DeathNotifier(AudioTrack* audioTrack) : mAudioTrack(audioTrack) { } in DeathNotifier()
1147 const wp<AudioTrack> mAudioTrack;
DJetPlayer.h92 sp<AudioTrack> mAudioTrack; // and we play it in this audio track variable
/frameworks/av/media/libmedia/include/media/
DJetPlayer.h92 sp<AudioTrack> mAudioTrack; // and we play it in this audio track variable
/frameworks/av/media/libstagefright/include/
DAudioPlayer.h70 sp<AudioTrack> mAudioTrack; variable
DMediaSync.h202 sp<AudioTrack> mAudioTrack; variable
/frameworks/wilhelm/src/itf/
DIAndroidEffect.cpp31 if (ap->mTrackPlayer->mAudioTrack != 0) { in IAndroidEffect_CreateEffect()

12