Lines Matching refs:mFrameCount
80 : mCblk(cblk), mBuffers(buffers), mFrameCount(frameCount), mFrameSize(frameSize), in Proxy()
90 if (startThresholdInFrames == 0 || startThresholdInFrames > mFrameCount) { in getStartThresholdInFrames()
93 __func__, startThresholdInFrames, mFrameCount); in getStartThresholdInFrames()
94 return mFrameCount; in getStartThresholdInFrames()
153 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0, in obtainBuffer()
229 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
232 "shutting down", filled, mFrameCount); in obtainBuffer()
263 if (part1 > buffer->mFrameCount) { in obtainBuffer()
264 part1 = buffer->mFrameCount; in obtainBuffer()
266 buffer->mFrameCount = part1; in obtainBuffer()
358 buffer->mFrameCount = 0; in obtainBuffer()
381 size_t stepCount = buffer->mFrameCount; in releaseBuffer()
384 buffer->mFrameCount = 0; in releaseBuffer()
389 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount), in releaseBuffer()
392 __func__, stepCount, mUnreleased, mFrameCount, getBufferSizeInFrames()); in releaseBuffer()
736 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in flushBufferIfNeeded()
777 if (0 <= filled && (size_t) filled <= mFrameCount) { in getRear()
800 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0, in obtainBuffer()
822 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in obtainBuffer()
824 filled, mFrameCount); in obtainBuffer()
834 mAvailToClient = mFrameCount - filled; in obtainBuffer()
836 availToServer = mFrameCount - filled; in obtainBuffer()
851 size_t ask = buffer->mFrameCount; in obtainBuffer()
856 buffer->mFrameCount = part1; in obtainBuffer()
868 buffer->mFrameCount = 0; in obtainBuffer()
879 size_t stepCount = buffer->mFrameCount; in releaseBuffer()
882 buffer->mFrameCount = 0; in releaseBuffer()
887 LOG_ALWAYS_FATAL_IF(!(stepCount <= mUnreleased && mUnreleased <= mFrameCount), in releaseBuffer()
890 __func__, stepCount, mUnreleased, mFrameCount); in releaseBuffer()
904 size_t half = mFrameCount / 2; in releaseBuffer()
924 buffer->mFrameCount = 0; in releaseBuffer()
946 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in framesReady()
948 filled, mFrameCount); in framesReady()
967 return mFrameCount; in framesReadySafe()
971 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in framesReadySafe()
1063 if (loopStart < loopEnd && loopEnd <= mFrameCount && in updateStateWithLoop()
1073 if (!valid || position > mFrameCount) { in updateStateWithLoop()
1089 if (update.mPosition > mFrameCount) { in updateStateWithPosition()
1126 mFramesReady = mFrameCount - mState.mPosition; in pollPosition()
1131 + mFrameCount - mState.mPosition; in pollPosition()
1149 buffer->mFrameCount = 0; in obtainBuffer()
1157 buffer->mFrameCount = 0; in obtainBuffer()
1164 size_t end = mState.mLoopCount != 0 ? mState.mLoopEnd : mFrameCount; in obtainBuffer()
1168 size_t wanted = buffer->mFrameCount; in obtainBuffer()
1170 buffer->mFrameCount = avail; in obtainBuffer()
1177 buffer->mFrameCount = 0; in obtainBuffer()
1195 size_t stepCount = buffer->mFrameCount; in releaseBuffer()
1215 if (!(position <= newPosition && newPosition <= mFrameCount)) { in releaseBuffer()
1217 mFrameCount); in releaseBuffer()
1218 newPosition = mFrameCount; in releaseBuffer()
1227 if (newPosition == mFrameCount) { in releaseBuffer()
1249 buffer->mFrameCount = 0; in releaseBuffer()
1282 if (!(0 <= filled && (size_t) filled <= mFrameCount)) { in framesReadySafe()