Home | History | Annotate | Download | only in audio_utils

Lines Matching defs:diff

68 int32_t audio_utils_fifo_base::diff(uint32_t rear, uint32_t front, size_t *lost, bool flush) const
78 uint32_t diff = rear - front;
99 *lost = diff - (flush ? 0 : mFrameCount) - mFudgeFactor * (genDiff/mFrameCountP2);
105 diff -= mFudgeFactor;
106 // Note is still possible for diff > mFrameCount. BCD 16 - BCD 1 shows the problem.
107 // genDiff is 16, fudge is 6, decimal diff is 15 = (22 - 1 - 6).
108 // So we need to check diff for overflow one more time. See "if" a few lines below.
112 if (diff > mFrameCount) {
114 *lost = diff - (flush ? 0 : mFrameCount);
118 return (int32_t) diff;
209 int32_t filled = mFifo.diff(mLocalRear, front);
315 int32_t filled = mFifo.diff(mLocalRear, front);
473 int32_t filled = mFifo.diff(rear, mLocalFront);
580 int32_t filled = mFifo.diff(rear, mLocalFront, lost, mFlush);