Lines Matching refs:numFramesPlayed
395 uint32_t numFramesPlayed;
396 CHECK_EQ(mAudioSink->getPosition(&numFramesPlayed),
400 mNumFramesWritten - numFramesPlayed;
660 uint32_t numFramesPlayed;
661 if (mAudioSink->getPosition(&numFramesPlayed) != OK) {
666 mAudioSink->frameCount() - (mNumFramesWritten - numFramesPlayed);
1313 uint32_t numFramesPlayed;
1320 numFramesPlayed = ts.mPosition;
1335 //ALOGD("getTimestamp: OK %d %lld", numFramesPlayed, (long long)numFramesPlayedAt);
1337 numFramesPlayed = 0;
1340 // numFramesPlayed, (long long)numFramesPlayedAt);
1342 res = mAudioSink->getPosition(&numFramesPlayed);
1346 //ALOGD("getPosition: %d %lld", numFramesPlayed, numFramesPlayedAt);
1350 //CHECK_EQ(numFramesPlayed & (1 << 31), 0); // can't be negative until 12.4 hrs, test
1351 int64_t durationUs = (int64_t)((int32_t)numFramesPlayed * 1000LL * mAudioSink->msecsPerFrame())
1354 // Occurs when numFramesPlayed position is very small and the following:
1356 // numFramesPlayedAt is greater than nowUs by time more than numFramesPlayed.
1358 // numFramesPlayedAt, by a time amount greater than numFramesPlayed.
1365 (long long)durationUs, (long long)nowUs, numFramesPlayed, (long long)numFramesPlayedAt);