Lines Matching refs:delayUs
482 int64_t delayUs = in onMessageReceived() local
486 delayUs /= mPlaybackRate; in onMessageReceived()
491 delayUs /= 2; in onMessageReceived()
495 ALOGD_IF(delayUs > maxDrainDelayUs, "postDrainAudioQueue long delay: %lld > %lld", in onMessageReceived()
496 (long long)delayUs, (long long)maxDrainDelayUs); in onMessageReceived()
498 postDrainAudioQueue_l(delayUs); in onMessageReceived()
683 void NuPlayer::Renderer::postDrainAudioQueue_l(int64_t delayUs) { in postDrainAudioQueue_l() argument
695 if (diffUs > delayUs) { in postDrainAudioQueue_l()
696 delayUs = diffUs; in postDrainAudioQueue_l()
703 msg->post(delayUs); in postDrainAudioQueue_l()
1135 int64_t delayUs; in postDrainVideoQueue() local
1174 delayUs = realTimeUs - nowUs; in postDrainVideoQueue()
1176 if (delayUs > 500000) { in postDrainVideoQueue()
1194 (int)(delayUs / 1000), (int)(postDelayUs / 1000)); in postDrainVideoQueue()
1203 delayUs = realTimeUs - nowUs; in postDrainVideoQueue()
1205 ALOGW_IF(delayUs > 500000, "unusually high delayUs: %" PRId64, delayUs); in postDrainVideoQueue()
1207 msg->post(delayUs > twoVsyncsUs ? delayUs - twoVsyncsUs : 0); in postDrainVideoQueue()
1306 void NuPlayer::Renderer::notifyEOS(bool audio, status_t finalResult, int64_t delayUs) { in notifyEOS() argument
1307 if (audio && delayUs > 0) { in notifyEOS()
1311 msg->post(delayUs); in notifyEOS()
1318 notify->post(delayUs); in notifyEOS()
1518 const int delayUs = 2 * 50 * 1000; // (2 full mixer thread cycles at 50ms) in onFlush() local
1519 mPauseDrainAudioAllowedUs = ALooper::GetNowUs() + delayUs; in onFlush()