Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/
DAudioPlayer.cpp39 : mAudioTrack(NULL), in AudioPlayer()
164 mAudioTrack = new AudioTrack( in start()
168 if ((err = mAudioTrack->initCheck()) != OK) { in start()
169 delete mAudioTrack; in start()
170 mAudioTrack = NULL; in start()
184 mLatencyUs = (int64_t)mAudioTrack->latency() * 1000; in start()
185 mFrameSize = mAudioTrack->frameSize(); in start()
187 mAudioTrack->start(); in start()
203 mAudioTrack->stop(); in pause()
212 mAudioTrack->pause(); in pause()
[all …]
DAwesomePlayer.cpp486 if ((mAudioSource != NULL) && (mAudioSource != mAudioTrack)) { in reset_l()
517 mAudioTrack.clear(); in reset_l()
958 if ((mAudioSource != NULL) && (mAudioSource != mAudioTrack)) { in play_l()
1165 if ((mAudioSource != NULL) && (mAudioSource != mAudioTrack)) { in pause_l()
1368 mAudioTrack = source; in setAudioSource()
1384 sp<MetaData> meta = mAudioTrack->getFormat(); in initAudioDecoder()
1390 mAudioSource = mAudioTrack; in initAudioDecoder()
1393 mClient.interface(), mAudioTrack->getFormat(), in initAudioDecoder()
1395 mAudioTrack); in initAudioDecoder()
1400 if (mAudioTrack->getFormat()->findInt64(kKeyDuration, &durationUs)) { in initAudioDecoder()
[all …]
/frameworks/av/media/libmedia/
DJetPlayer.cpp42 mAudioTrack(NULL), in JetPlayer()
91 mAudioTrack = new AudioTrack(); in init()
92 mAudioTrack->set(AUDIO_STREAM_MUSIC, //TODO parameterize this in init()
143 if (mAudioTrack) { in release()
144 mAudioTrack->stop(); in release()
145 mAudioTrack->flush(); in release()
146 delete mAudioTrack; in release()
147 mAudioTrack = NULL; in release()
195 mAudioTrack->pause(); in render()
227 if (mAudioTrack == NULL) { in render()
[all …]
DSoundPool.cpp617 oldTrack = mAudioTrack; in play()
629 mAudioTrack = newTrack; in play()
641 mAudioTrack->start(); in play()
650 mAudioTrack = NULL; in play()
766 mAudioTrack->stop(); in doStop_l()
804 mAudioTrack->pause(); in pause()
815 mAudioTrack->pause(); in autoPause()
826 mAudioTrack->start(); in resume()
837 mAudioTrack->start(); in autoResume()
844 if (mAudioTrack != NULL && mSample != 0) { in setRate()
[all …]
DAudioTrack.cpp168 mAudioTrack.clear(); in ~AudioTrack()
202 if (mAudioTrack != 0) { in set()
340 sp<IAudioTrack> audioTrack = mAudioTrack; in start()
365 status = mAudioTrack->start(); in start()
401 mAudioTrack->stop(); in stop()
449 mAudioTrack->flush(); in flush_l()
462 mAudioTrack->pause(); in pause()
723 status_t status = mAudioTrack->attachAuxEffect(effectId); in attachAuxEffect()
884 mAudioTrack = track; in createTrack_l()
917 mAudioTrack->attachAuxEffect(mAuxEffectId); in createTrack_l()
[all …]
/frameworks/base/core/java/android/speech/tts/
DSynthesisPlaybackQueueItem.java62 private final BlockingAudioTrack mAudioTrack; field in SynthesisPlaybackQueueItem
78 mAudioTrack = new BlockingAudioTrack(streamType, sampleRate, audioFormat, in SynthesisPlaybackQueueItem()
90 if (!mAudioTrack.init()) { in run()
105 mAudioTrack.write(buffer); in run()
113 mAudioTrack.waitAndRelease(); in run()
151 mAudioTrack.stop(); in stop()
182 while ((unconsumedAudioMs = mAudioTrack.getAudioLengthMs(mUnconsumedBytes)) > in put()
DBlockingAudioTrack.java73 private AudioTrack mAudioTrack; field in BlockingAudioTrack
91 mAudioTrack = null; in BlockingAudioTrack()
98 mAudioTrack = track; in init()
110 if (mAudioTrack != null) { in stop()
111 mAudioTrack.stop(); in stop()
120 track = mAudioTrack; in write()
135 track = mAudioTrack; in waitAndRelease()
160 if (DBG) Log.d(TAG, "Waiting for audio track to complete : " + mAudioTrack.hashCode()); in waitAndRelease()
161 blockUntilDone(mAudioTrack); in waitAndRelease()
169 mAudioTrack = null; in waitAndRelease()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp80 if (mAudioTrack.mSource == NULL) { in initFromDataSource()
81 mAudioTrack.mSource = track = extractor->getTrack(i); in initFromDataSource()
132 if (mAudioTrack.mSource != NULL) { in start()
133 CHECK_EQ(mAudioTrack.mSource->start(), (status_t)OK); in start()
135 mAudioTrack.mPackets = in start()
136 new AnotherPacketSource(mAudioTrack.mSource->getFormat()); in start()
156 sp<MediaSource> source = audio ? mAudioTrack.mSource : mVideoTrack.mSource; in getFormatMeta()
167 Track *track = audio ? &mAudioTrack : &mVideoTrack; in dequeueAccessUnit()
198 if (mAudioTrack.mSource != NULL) { in seekTo()
207 Track *track = audio ? &mAudioTrack : &mVideoTrack; in readBuffer()
DRTSPSource.cpp165 if ((mAudioTrack != NULL && mAudioTrack->isFinished(mediaDurationUs)) in haveSufficientDataOnAllTracks()
172 if (mAudioTrack != NULL in haveSufficientDataOnAllTracks()
173 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
271 return audio ? mAudioTrack : mVideoTrack; in getSource()
286 if (mAudioTrack != NULL in getDuration()
287 && mAudioTrack->getFormat()->findInt64( in getDuration()
543 CHECK(mAudioTrack == NULL); in onConnected()
571 if ((isAudio && mAudioTrack == NULL) in onConnected()
576 mAudioTrack = source; in onConnected()
DGenericSource.h67 Track mAudioTrack; member
DRTSPSource.h108 sp<AnotherPacketSource> mAudioTrack; member
/frameworks/av/libvideoeditor/lvpp/
DVideoEditorAudioPlayer.cpp38 : mAudioTrack(NULL), in VideoEditorAudioPlayer()
91 mAudioTrack->stop(); in pause()
97 mAudioTrack->pause(); in pause()
112 mAudioTrack->stop(); in clear()
114 delete mAudioTrack; in clear()
115 mAudioTrack = NULL; in clear()
183 mAudioTrack->start(); in resume()
199 mAudioTrack->flush(); in seekTo()
535 mAudioTrack = new AudioTrack( in start()
540 if ((err = mAudioTrack->initCheck()) != OK) { in start()
[all …]
DPreviewPlayer.cpp222 mAudioTrack = DummyAudioSource::Create(32000, 2, 20000, in setDataSource_l()
224 if(mAudioTrack != NULL) { in setDataSource_l()
282 mAudioTrack.clear(); in reset_l()
702 sp<MetaData> meta = mAudioTrack->getFormat(); in initAudioDecoder_l()
707 mAudioSource = mAudioTrack; in initAudioDecoder_l()
711 mClient.interface(), mAudioTrack->getFormat(), in initAudioDecoder_l()
713 mAudioTrack); in initAudioDecoder_l()
722 if (mAudioTrack->getFormat()->findInt64(kKeyDuration, &durationUs)) { in initAudioDecoder_l()
1216 if (mAudioTrack != NULL && mAudioSource == NULL) { in onPrepareAsyncEvent()
1595 mAudioTrack.clear(); in clear_l()
[all …]
DVideoEditorAudioPlayer.h94 AudioTrack *mAudioTrack; variable
DPreviewPlayer.h143 sp<MediaSource> mAudioTrack; member
/frameworks/wilhelm/src/android/
DAudioPlayer_to_android.cpp239 } else if (ap->mAudioTrack != 0) { in android_audioPlayer_volumeUpdate()
240 ap->mAudioTrack->setVolume(leftVol, rightVol); in android_audioPlayer_volumeUpdate()
519 if ((ap->mAudioTrack != 0) && (ap->mAuxEffect != 0)) { in audioPlayer_auxEffectUpdate()
772 if ((ap->mAudioTrack != 0) && (!ap->mSeek.mLoopEnabled)) { in sfplayer_handlePrefetchEvent()
773 ap->mAudioTrack->stop(); in sfplayer_handlePrefetchEvent()
1174 ap->mAudioTrack->stop(); in audioTrack_callBack_pullFromBuffQueue()
1435 pAudioPlayer->mAudioTrack = new android::AudioTrack( in android_audioPlayer_realize()
1447 android::status_t status = pAudioPlayer->mAudioTrack->initCheck(); in android_audioPlayer_realize()
1451 pAudioPlayer->mAudioTrack.clear(); in android_audioPlayer_realize()
1671 if (pAudioPlayer->mAudioTrack != 0) { in android_audioPlayer_destroy()
[all …]
Dandroid_Effect.cpp468 assert(ap->mAudioTrack == 0); in android_fxSend_attach()
478 if (ap->mAudioTrack == 0) { in android_fxSend_attach()
492 android::status_t status = ap->mAudioTrack->attachAuxEffect(pFx->id()); in android_fxSend_attach()
496 ap->mAudioTrack->setAuxEffectSendLevel( sles_to_android_amplification(sendLevel) ); in android_fxSend_attach()
500 return ap->mAudioTrack->attachAuxEffect(0); in android_fxSend_attach()
548 assert(ap->mAudioTrack == 0); in android_fxSend_setSendLevel()
553 if (ap->mAudioTrack == 0) { in android_fxSend_setSendLevel()
557 return ap->mAudioTrack->setAuxEffectSendLevel( sles_to_android_amplification(sendLevel) ); in android_fxSend_setSendLevel()
/frameworks/av/cmds/stagefright/
DSimplePlayer.cpp533 if (state->mAudioTrack != NULL) { in onDoMoreStuff()
587 state->mAudioTrack = new AudioTrack( in onOutputFormatChanged()
602 CHECK(state->mAudioTrack != NULL); in renderAudio()
604 if (state->mAudioTrack->stopped()) { in renderAudio()
605 state->mAudioTrack->start(); in renderAudio()
609 CHECK_EQ(state->mAudioTrack->getPosition(&numFramesPlayed), (status_t)OK); in renderAudio()
612 state->mAudioTrack->frameCount() in renderAudio()
616 numFramesAvailableToWrite * state->mAudioTrack->frameSize(); in renderAudio()
629 ssize_t nbytes = state->mAudioTrack->write( in renderAudio()
636 uint32_t numFramesWritten = nbytes / state->mAudioTrack->frameSize(); in renderAudio()
DSimplePlayer.h81 sp<AudioTrack> mAudioTrack; member
/frameworks/base/media/java/android/media/videoeditor/
DMediaArtistNativeHelper.java76 private AudioTrack mAudioTrack = null; field in MediaArtistNativeHelper
2728 mAudioTrack = mediaBGMList.get(0); in populateBackgroundMusicProperties()
2730 mAudioTrack = null; in populateBackgroundMusicProperties()
2733 if (mAudioTrack != null) { in populateBackgroundMusicProperties()
2737 mAudioSettings.Id = mAudioTrack.getId(); in populateBackgroundMusicProperties()
2739 mAudioProperties = getMediaProperties(mAudioTrack.getFilename()); in populateBackgroundMusicProperties()
2746 mAudioSettings.loop = mAudioTrack.isLooping(); in populateBackgroundMusicProperties()
2748 mAudioSettings.pFile = mAudioTrack.getFilename(); in populateBackgroundMusicProperties()
2749 mAudioSettings.startMs = mAudioTrack.getStartTime(); in populateBackgroundMusicProperties()
2750 mAudioSettings.beginCutTime = mAudioTrack.getBoundaryBeginTime(); in populateBackgroundMusicProperties()
[all …]
/frameworks/av/include/media/
DJetPlayer.h91 AudioTrack* mAudioTrack; // and we play it in this audio track variable
DSoundPool.h121 SoundChannel() : mAudioTrack(NULL), mState(IDLE), mNumChannels(1), in SoundChannel()
151 AudioTrack* mAudioTrack; variable
DAudioTrack.h536 sp<IAudioTrack> mAudioTrack; variable
/frameworks/av/include/media/stagefright/
DAudioPlayer.h73 AudioTrack *mAudioTrack; variable
/frameworks/wilhelm/src/itf/
DIAndroidEffect.cpp31 if (ap->mAudioTrack != 0) { in IAndroidEffect_CreateEffect()

12