Lines Matching refs:rear
7947 int32_t rear = mRsmpInRear & (mRsmpInFramesP2 - 1); in threadLoop() local
7953 size_t framesToRead = min(mRsmpInFramesOA - rear, mRsmpInFramesP2 / 2); in threadLoop()
7960 framesRead = mPipeSource->read((uint8_t*)mRsmpInBuffer + rear * mFrameSize, in threadLoop()
7999 (uint8_t*)mRsmpInBuffer + rear * mFrameSize, mBufferSize, &bytesRead); in threadLoop()
8076 (void)mTee.write((uint8_t*)mRsmpInBuffer + rear * mFrameSize, framesRead); in threadLoop()
8080 size_t part1 = mRsmpInFramesP2 - rear; in threadLoop()
8911 const int32_t rear = recordThread->mRsmpInRear; in reset() local
8916 if (startFrames <= rear) { in reset()
8917 deltaFrames = rear - startFrames; in reset()
8919 deltaFrames = (int32_t)((int64_t)rear + UINT32_MAX + 1 - startFrames); in reset()
8926 mRsmpInFront = audio_utils::safe_sub_overflow(rear, static_cast<int32_t>(deltaFrames)); in reset()
8934 const int32_t rear = recordThread->mRsmpInRear; in sync() local
8936 const ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in sync()
8943 mRsmpInFront = rear; in sync()
8951 rear, static_cast<int32_t>(framesIn)); in sync()
8973 int32_t rear = recordThread->mRsmpInRear; in getNextBuffer() local
8975 ssize_t filled = audio_utils::safe_sub_overflow(rear, front); in getNextBuffer()