Lines Matching refs:mediaTimeUs
618 int64_t mediaTimeUs;
619 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs));
620 ALOGV("rendering audio at media time %.2f secs", mediaTimeUs / 1E6);
621 setAudioFirstAnchorTimeIfNeeded(mediaTimeUs);
706 int64_t mediaTimeUs;
707 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs));
708 ALOGV("rendering audio at media time %.2f secs", mediaTimeUs / 1E6);
709 onNewAudioMediaTime(mediaTimeUs);
773 int64_t NuPlayer::Renderer::getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) {
781 return (mediaTimeUs - currentPositionUs) + nowUs;
784 void NuPlayer::Renderer::onNewAudioMediaTime(int64_t mediaTimeUs) {
787 if (mediaTimeUs == mAnchorTimeMediaUs) {
790 setAudioFirstAnchorTimeIfNeeded(mediaTimeUs);
793 mediaTimeUs, nowUs + getPendingAudioPlayoutDurationUs(nowUs), mNumFramesWritten);
823 int64_t mediaTimeUs;
824 CHECK(entry.mBuffer->meta()->findInt64("timeUs", &mediaTimeUs));
825 realTimeUs = mediaTimeUs;
827 int64_t mediaTimeUs;
828 CHECK(entry.mBuffer->meta()->findInt64("timeUs", &mediaTimeUs));
831 setAnchorTime(mediaTimeUs, nowUs);
832 mPausePositionMediaTimeUs = mediaTimeUs;
833 mAnchorMaxMediaUs = mediaTimeUs;
836 realTimeUs = getRealTimeUs(mediaTimeUs, nowUs);
839 mAnchorMaxMediaUs = mediaTimeUs + 100000; // smooth out videos >= 10fps
898 int64_t mediaTimeUs;
899 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs));
902 realTimeUs = getRealTimeUs(mediaTimeUs, nowUs);