Lines Matching refs:frameCount
92 const size_t frameCount = current->mFrameCount;
128 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) {
132 if (frameCount > 0 && mSampleRate > 0) {
136 size_t bufferSize = frameCount * Format_frameSize(mFormat);
139 mPeriodNs = (frameCount * 1000000000LL) / mSampleRate; // 1.00
140 mUnderrunNs = (frameCount * 1750000000LL) / mSampleRate; // 1.75
141 mOverrunNs = (frameCount * 500000000LL) / mSampleRate; // 0.50
142 mForceNs = (frameCount * 950000000LL) / mSampleRate; // 0.95
143 mWarmupNsMin = (frameCount * 750000000LL) / mSampleRate; // 0.75
144 mWarmupNsMax = (frameCount * 1250000000LL) / mSampleRate; // 1.25
154 dumpState->mFrameCount = frameCount;
164 const size_t frameCount = current->mFrameCount;
171 ssize_t framesRead = mInputSource->read(mReadBuffer, frameCount);
175 LOG_ALWAYS_FATAL_IF((size_t) framesRead > frameCount);
191 memset(mReadBuffer, 0, frameCount * Format_frameSize(mFormat));
192 mReadBufferState = frameCount;