Home | History | Annotate | Download | only in nuplayer

Lines Matching refs:mAudioSink

58     : mAudioSink(sink),
98 mAudioSink->stop();
99 mAudioSink->flush();
100 mAudioSink->close();
380 mAudioSink->stop();
396 CHECK_EQ(mAudioSink->getPosition(&numFramesPlayed),
405 mAudioSink->msecsPerFrame()
661 if (mAudioSink->getPosition(&numFramesPlayed) != OK) {
666 mAudioSink->frameCount() - (mNumFramesWritten - numFramesPlayed);
669 if (numFramesAvailableToWrite == mAudioSink->frameCount()) {
673 mAudioSink->frameCount() - numFramesAvailableToWrite);
678 numFramesAvailableToWrite * mAudioSink->frameSize();
688 if (mAudioSink->needsTrailingPadding()) {
695 if (mAudioSink->needsTrailingPadding()) {
699 mAudioSink->stop();
717 ssize_t written = mAudioSink->write(entry->mBuffer->data() + entry->mOffset, copy);
733 size_t copiedFrames = written / mAudioSink->frameSize();
750 CHECK_EQ(copy % mAudioSink->frameSize(), 0);
762 * 1000LL * mAudioSink->msecsPerFrame());
769 mNumFramesWritten * 1000LL * mAudioSink->msecsPerFrame();
1137 mAudioSink->pause();
1138 mAudioSink->flush();
1139 mAudioSink->start();
1214 if (mAudioSink->getFramesWritten(&written) == OK) {
1262 mAudioSink->pause();
1277 mAudioSink->start();
1318 status_t res = mAudioSink->getTimestamp(ts);
1342 res = mAudioSink->getPosition(&numFramesPlayed);
1345 numFramesPlayedAt += 1000LL * mAudioSink->latency() / 2; /* XXX */
1351 int64_t durationUs = (int64_t)((int32_t)numFramesPlayed * 1000LL * mAudioSink->msecsPerFrame())
1357 // (2) In case 3, using getPosition and adding mAudioSink->latency() to
1380 mAudioSink->stop();
1381 mAudioSink->flush();
1477 mAudioSink->close();
1478 err = mAudioSink->open(
1497 err = mAudioSink->start();
1502 mAudioSink->close();
1528 mAudioSink->close();
1530 status_t err = mAudioSink->open(
1545 mAudioSink->start();
1557 mAudioSink->close();