/frameworks/av/media/libstagefright/ |
D | AudioPlayer.cpp | 39 : 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 …]
|
D | AwesomePlayer.cpp | 486 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/ |
D | JetPlayer.cpp | 42 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 …]
|
D | SoundPool.cpp | 617 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 …]
|
D | AudioTrack.cpp | 168 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/ |
D | SynthesisPlaybackQueueItem.java | 62 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()
|
D | BlockingAudioTrack.java | 73 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/ |
D | GenericSource.cpp | 80 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()
|
D | RTSPSource.cpp | 165 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()
|
D | GenericSource.h | 67 Track mAudioTrack; member
|
D | RTSPSource.h | 108 sp<AnotherPacketSource> mAudioTrack; member
|
/frameworks/av/libvideoeditor/lvpp/ |
D | VideoEditorAudioPlayer.cpp | 38 : 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 …]
|
D | PreviewPlayer.cpp | 222 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 …]
|
D | VideoEditorAudioPlayer.h | 94 AudioTrack *mAudioTrack; variable
|
D | PreviewPlayer.h | 143 sp<MediaSource> mAudioTrack; member
|
/frameworks/wilhelm/src/android/ |
D | AudioPlayer_to_android.cpp | 239 } 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 …]
|
D | android_Effect.cpp | 468 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/ |
D | SimplePlayer.cpp | 533 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()
|
D | SimplePlayer.h | 81 sp<AudioTrack> mAudioTrack; member
|
/frameworks/base/media/java/android/media/videoeditor/ |
D | MediaArtistNativeHelper.java | 76 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/ |
D | JetPlayer.h | 91 AudioTrack* mAudioTrack; // and we play it in this audio track variable
|
D | SoundPool.h | 121 SoundChannel() : mAudioTrack(NULL), mState(IDLE), mNumChannels(1), in SoundChannel() 151 AudioTrack* mAudioTrack; variable
|
D | AudioTrack.h | 536 sp<IAudioTrack> mAudioTrack; variable
|
/frameworks/av/include/media/stagefright/ |
D | AudioPlayer.h | 73 AudioTrack *mAudioTrack; variable
|
/frameworks/wilhelm/src/itf/ |
D | IAndroidEffect.cpp | 31 if (ap->mAudioTrack != 0) { in IAndroidEffect_CreateEffect()
|