Lines Matching refs:mAudioSink

115     : mAudioSink(sink),  in Renderer()
163 mAudioSink->stop(); in ~Renderer()
164 mAudioSink->flush(); in ~Renderer()
165 mAudioSink->close(); in ~Renderer()
177 mAudioSink.clear(); in ~Renderer()
225 if (mAudioSink != NULL && mAudioSink->ready()) { in onConfigPlayback()
226 status_t err = mAudioSink->setPlaybackRate(rate); in onConfigPlayback()
251 if (mAudioSink != NULL && mAudioSink->ready()) { in onGetPlaybackSettings()
252 status_t err = mAudioSink->getPlaybackRate(rate); in onGetPlaybackSettings()
374 status_t res = mAudioSink->getTimestamp(ts); in getCurrentPosition()
381 int64_t playedOutDurationUs = mAudioSink->getPlayedOutDurationUs(nowUs); in getCurrentPosition()
524 mAudioSink->stop(); in onMessageReceived()
575 CHECK_EQ(mAudioSink->getPosition(&numFramesPlayed), in onMessageReceived()
586 mAudioSink->msecsPerFrame() in onMessageReceived()
597 mAudioSink->getBufferDurationInUs(), (int64_t)500000 /* half second */); in onMessageReceived()
928 mAudioFirstAnchorTimeMediaUs + mAudioSink->getPlayedOutDurationUs(nowUs); in fillAudioBuffer()
937 mNumFramesWritten += sizeCopied / mAudioSink->frameSize(); in fillAudioBuffer()
946 if (mAudioSink->needsTrailingPadding()) { in fillAudioBuffer()
1006 if (mAudioSink->getPosition(&numFramesPlayed) != OK) { in onDrainAudioQueue()
1019 mAudioSink->frameCount() - (mNumFramesWritten - numFramesPlayed); in onDrainAudioQueue()
1021 if (numFramesAvailableToWrite == mAudioSink->frameCount()) { in onDrainAudioQueue()
1025 mAudioSink->frameCount() - numFramesAvailableToWrite); in onDrainAudioQueue()
1050 if (mAudioSink->needsTrailingPadding()) { in onDrainAudioQueue()
1058 if (mAudioSink->needsTrailingPadding()) { in onDrainAudioQueue()
1062 mAudioSink->stop(); in onDrainAudioQueue()
1081 ssize_t written = mAudioSink->write(entry->mBuffer->data() + entry->mOffset, in onDrainAudioQueue()
1098 if ((ssize_t)remainder < mAudioSink->frameSize()) { in onDrainAudioQueue()
1112 size_t copiedFrames = written / mAudioSink->frameSize(); in onDrainAudioQueue()
1121 * 1000LL * mAudioSink->msecsPerFrame()); in onDrainAudioQueue()
1142 CHECK_EQ(copy % mAudioSink->frameSize(), 0u); in onDrainAudioQueue()
1185 const int64_t audioSinkPlayedUs = mAudioSink->getPlayedOutDurationUs(nowUs); in getPendingAudioPlayoutDurationUs()
1220 if (mAudioSink->getTimestamp(ts) == OK && ts.mPosition > 0) { in onNewAudioMediaTime()
1647 mAudioSink->pause(); in onFlush()
1648 mAudioSink->flush(); in onFlush()
1650 mAudioSink->start(); in onFlush()
1653 mAudioSink->pause(); in onFlush()
1654 mAudioSink->flush(); in onFlush()
1658 mAudioSink->stop(); in onFlush()
1660 mAudioSink->start(); in onFlush()
1734 if (mAudioSink->getFramesWritten(&written) == OK) { in onAudioSinkChanged()
1777 mAudioSink->pause(); in onPause()
1791 if (mAudioSink->ready()) { in onResume()
1792 status_t err = mAudioSink->start(); in onResume()
1807 if (mAudioSink != NULL && mAudioSink->ready()) { in onResume()
1808 mAudioSink->setPlaybackRate(mPlaybackSettings); in onResume()
1863 mAudioSink->stop(); in onAudioTearDown()
1864 mAudioSink->flush(); in onAudioTearDown()
1970 mAudioSink->close(); in onOpenAudioSink()
1972 err = mAudioSink->open( in onOpenAudioSink()
1984 err = mAudioSink->setPlaybackRate(mPlaybackSettings); in onOpenAudioSink()
1996 err = mAudioSink->start(); in onOpenAudioSink()
2002 mAudioSink->close(); in onOpenAudioSink()
2034 mAudioSink->close(); in onOpenAudioSink()
2056 LOG_ALWAYS_FATAL_IF(mAudioSink->setPlaybackRate(mPlaybackSettings) != OK, in onOpenAudioSink()
2058 status_t err = mAudioSink->open( in onOpenAudioSink()
2072 mAudioSink->close(); in onOpenAudioSink()
2078 mAudioSink->start(); in onOpenAudioSink()
2089 mAudioSink->close(); in onCloseAudioSink()