Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/companion/virtual/audio/
DAudioInjection.java53 private AudioTrack mAudioTrack; field in AudioInjection
95 if (mAudioTrack != null) { in setAudioTrack()
96 mAudioTrack.release(); in setAudioTrack()
98 mAudioTrack = audioTrack; in setAudioTrack()
108 if (mAudioTrack != null) { in close()
109 mAudioTrack.release(); in close()
110 mAudioTrack = null; in close()
130 if (mAudioTrack != null && !mIsSilent) { in write()
131 sizeWrite = mAudioTrack.write(audioData, offsetInBytes, sizeInBytes, writeMode); in write()
143 if (mAudioTrack != null && !mIsSilent) { in write()
[all …]
/frameworks/base/media/jni/soundpool/
DStream.cpp41 if (mAudioTrack != nullptr) { in autoPause()
42 mAudioTrack->pause(); in autoPause()
54 if (mAudioTrack != nullptr) { in autoResume()
55 mAudioTrack->start(); in autoResume()
66 if (mAudioTrack != nullptr) { in mute()
68 mAudioTrack->setVolume(0.0f, 0.0f); in mute()
70 mAudioTrack->setVolume(mLeftVolume, mRightVolume); in mute()
82 if (mAudioTrack != nullptr) { in pause()
83 mAudioTrack->pause(); in pause()
96 if (mAudioTrack != nullptr) { in resume()
[all …]
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp148 mAudioTrack = new AudioTrack(); in open()
150 mAudioTrack->set( in open()
174 mAudioTrack->setCallerName(kCallerName); in open()
177 status_t status = mAudioTrack->initCheck(); in open()
185 + std::to_string(mAudioTrack->getPortId()); in open()
197 mAudioTrack->channelMask(), false /*isInput*/, in open()
199 setFormat(mAudioTrack->format()); in open()
200 setDeviceFormat(mAudioTrack->format()); in open()
201 setSampleRate(mAudioTrack->getSampleRate()); in open()
217 setDeviceId(mAudioTrack->getRoutedDeviceId()); in open()
[all …]
DAudioStreamTrack.h104 android::sp<android::AudioTrack> mAudioTrack;
/frameworks/av/media/libaudioclient/
DTrackPlayerBase.cpp41 mAudioTrack = pat; in init()
42 if (mAudioTrack != 0) { in init()
45 mAudioTrack->addAudioDeviceCallback(mSelfAudioDeviceCallback); in init()
46 mAudioTrack->setPlayerIId(mPIId); // set in PlayerBase::init(). in init()
68 if (mAudioTrack != 0) { in doDestroy()
69 mAudioTrack->stop(); in doDestroy()
70 mAudioTrack->removeAudioDeviceCallback(mSelfAudioDeviceCallback); in doDestroy()
73 mAudioTrack.clear(); in doDestroy()
90 if (mAudioTrack != 0) { in playerStart()
91 status = mAudioTrack->start(); in playerStart()
[all …]
DAudioTrack.cpp463 IInterface::asBinder(mAudioTrack)->unlinkToDeath(mDeathNotifier, this); in ~AudioTrack()
464 mAudioTrack.clear(); in ~AudioTrack()
667 if (mAudioTrack != 0) { in set()
986 mAudioTrack->start(&status); in start()
1060 mAudioTrack->stop(); in stop()
1130 mAudioTrack->flush(); in flush_l()
1209 mAudioTrack->pause(); in pause()
1253 mAudioTrack->signal(); in setVolume()
1351 mAudioTrack->setDualMonoMode(VALUE_OR_RETURN_STATUS( in setDualMonoMode_l()
1361 const status_t status = statusTFromBinderStatus(mAudioTrack->getDualMonoMode(&mediaMode)); in getDualMonoMode()
[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.cpp250 mAudioTrack = new AudioTrack( in start()
256 if ((err = mAudioTrack->initCheck()) != OK) { in start()
257 mAudioTrack.clear(); in start()
271 mLatencyUs = (int64_t)mAudioTrack->latency() * 1000; in start()
272 mFrameSize = mAudioTrack->frameSize(); in start()
274 mAudioTrack->start(); in start()
290 mAudioTrack->stop(); in pause()
299 mAudioTrack->pause(); in pause()
313 err = mAudioTrack->start(); in resume()
346 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.h73 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/av/media/libmediaplayerservice/nuplayer/
DRTPSource.cpp158 mAudioTrack = source; in prepareAsync()
219 if ((mAudioTrack != NULL && mAudioTrack->isFinished(mediaDurationUs)) in haveSufficientDataOnAllTracks()
226 if (mAudioTrack != NULL in haveSufficientDataOnAllTracks()
227 && (durationUs = mAudioTrack->getBufferedDurationUs(&err)) in haveSufficientDataOnAllTracks()
326 return audio ? mAudioTrack : mVideoTrack; in getSource()
341 if (mAudioTrack != NULL && mAudioTrack->getFormat() != NULL in getDuration()
342 && mAudioTrack->getFormat()->findInt64( in getDuration()
474 mAudioTrack->signalEOS(ERROR_END_OF_STREAM); in onMessageReceived()
475 mAudioTrack = NULL; in onMessageReceived()
DRTSPSource.cpp183 if ((mAudioTrack != NULL && mAudioTrack->isFinished(mediaDurationUs)) in haveSufficientDataOnAllTracks()
190 if (mAudioTrack != NULL in haveSufficientDataOnAllTracks()
191 && (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()
733 CHECK(mAudioTrack == NULL); in onConnected()
761 if ((isAudio && mAudioTrack == NULL) in onConnected()
766 mAudioTrack = source; in onConnected()
DGenericSource.cpp230 if (mAudioTrack.mSource == NULL) { in initFromDataSource()
231 mAudioTrack.mIndex = i; in initFromDataSource()
232 mAudioTrack.mSource = track; in initFromDataSource()
233 mAudioTrack.mPackets = in initFromDataSource()
234 new AnotherPacketSource(mAudioTrack.mSource->getFormat()); in initFromDataSource()
315 if (mAudioTrack.mSource != NULL && mAudioTrack.mSource->start() != OK) { in startSources()
329 if (mAudioTrack.mSource != NULL) { in getLastReadPosition()
508 if (mAudioTrack.mSource != NULL) { in finishPrepareAsync()
538 if (mAudioTrack.mSource != NULL) { in start()
656 track = &mAudioTrack; in onMessageReceived()
[all …]
/frameworks/wilhelm/src/android/
DAudioPlayer_to_android.cpp626 if ((ap->mTrackPlayer->mAudioTrack != 0) && (ap->mAuxEffect != 0)) { in audioPlayer_auxEffectUpdate()
880 if ((ap->mTrackPlayer->mAudioTrack != 0) && (!ap->mSeek.mLoopEnabled)) { in sfplayer_handlePrefetchEvent()
881 ap->mTrackPlayer->mAudioTrack->stop(); in sfplayer_handlePrefetchEvent()
1552 audio_output_flags_t flags = pAudioPlayer->mTrackPlayer->mAudioTrack->getFlags(); in checkAndSetPerformanceModePost()
1695 (jlong)pAudioPlayer->mTrackPlayer->mAudioTrack.get()); in android_audioPlayer_realize()
1699 pAudioPlayer->mTrackPlayer->mAudioTrack.clear(); in android_audioPlayer_realize()
1985 if (ap->mTrackPlayer->mAudioTrack != 0) { in android_audioPlayer_setPlaybackRateAndConstraints()
1986 ap->mTrackPlayer->mAudioTrack->setSampleRate(contentRate * (rate/1000.0f)); in android_audioPlayer_setPlaybackRateAndConstraints()
2192 if (ap->mTrackPlayer != 0 && ap->mTrackPlayer->mAudioTrack != 0) { in android_audioPlayer_setPlayState()
2193 deviceId = ap->mTrackPlayer->mAudioTrack->getRoutedDeviceId(); in android_audioPlayer_setPlayState()
[all …]
Dandroid_Effect.cpp515 assert(ap->mTrackPlayer->mAudioTrack == 0); in android_fxSend_attach()
525 if (ap->mTrackPlayer->mAudioTrack == 0) { in android_fxSend_attach()
539 android::status_t status = ap->mTrackPlayer->mAudioTrack->attachAuxEffect(pFx->id()); in android_fxSend_attach()
543 ap->mTrackPlayer->mAudioTrack->setAuxEffectSendLevel( in android_fxSend_attach()
548 return ap->mTrackPlayer->mAudioTrack->attachAuxEffect(0); in android_fxSend_attach()
597 assert(ap->mTrackPlayer->mAudioTrack == 0); in android_fxSend_setSendLevel()
602 if (ap->mTrackPlayer->mAudioTrack == 0) { in android_fxSend_setSendLevel()
606 return ap->mTrackPlayer->mAudioTrack->setAuxEffectSendLevel( in android_fxSend_setSendLevel()
/frameworks/av/media/libaudioclient/include/media/
DTrackPlayerBase.h41 sp<AudioTrack> mAudioTrack; variable
/frameworks/wilhelm/src/itf/
DIAndroidEffect.cpp31 if (ap->mTrackPlayer->mAudioTrack != 0) { in IAndroidEffect_CreateEffect()
/frameworks/av/media/libmediaplayerservice/nuplayer/include/nuplayer/
DRTSPSource.h120 sp<AnotherPacketSource> mAudioTrack; member
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaSync.h202 sp<AudioTrack> mAudioTrack; variable

12