Lines Matching refs:lost
68 int32_t audio_utils_fifo_base::diff(uint32_t rear, uint32_t front, size_t *lost, bool flush) const
72 if (lost != NULL) {
73 *lost = 0;
93 // but reader has lost frames if writer is further than one generation beyond.
95 if (lost != NULL) {
96 // Calculate the number of lost frames as the raw difference,
98 // less the wasted indices that don't count as true lost frames.
99 *lost = diff - (flush ? 0 : mFrameCount) - mFudgeFactor * (genDiff/mFrameCountP2);
113 if (lost != NULL) {
114 *lost = diff - (flush ? 0 : mFrameCount);
435 size_t *lost)
439 ssize_t availToRead = obtain(iovec, count, timeout, lost);
457 return obtain(iovec, count, timeout, NULL /*lost*/);
514 const struct timespec *timeout, size_t *lost)
576 if (lost == NULL) {
577 lost = &ourLost;
580 int32_t filled = mFifo.diff(rear, mLocalFront, lost, mFlush);
581 mTotalLost += *lost;
582 mTotalReleased += *lost;
615 return available(NULL /*lost*/);
618 ssize_t audio_utils_fifo_reader::available(size_t *lost)
621 return obtain(NULL /*iovec*/, SIZE_MAX /*count*/, NULL /*timeout*/, lost);
624 ssize_t audio_utils_fifo_reader::flush(size_t *lost)
627 ssize_t ret = obtain(iovec, SIZE_MAX /*count*/, NULL /*timeout*/, lost);