• Home
  • Raw
  • Download

Lines Matching refs:frameCount

93     const size_t frameCount = current->mFrameCount;  in onStateChange()  local
129 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) { in onStateChange()
133 if (frameCount > 0 && mSampleRate > 0) { in onStateChange()
137 size_t bufferSize = frameCount * Format_frameSize(mFormat); in onStateChange()
140 mPeriodNs = (frameCount * 1000000000LL) / mSampleRate; // 1.00 in onStateChange()
141 mUnderrunNs = (frameCount * 1750000000LL) / mSampleRate; // 1.75 in onStateChange()
142 mOverrunNs = (frameCount * 500000000LL) / mSampleRate; // 0.50 in onStateChange()
143 mForceNs = (frameCount * 950000000LL) / mSampleRate; // 0.95 in onStateChange()
144 mWarmupNsMin = (frameCount * 750000000LL) / mSampleRate; // 0.75 in onStateChange()
145 mWarmupNsMax = (frameCount * 1250000000LL) / mSampleRate; // 1.25 in onStateChange()
155 dumpState->mFrameCount = frameCount; in onStateChange()
165 size_t frameCount = current->mFrameCount; in onWork() local
170 patchBuffer.frameCount = ~0; in onWork()
173 frameCount = 0; in onWork()
174 } else if (patchBuffer.frameCount < frameCount) { in onWork()
177 frameCount = patchBuffer.frameCount; in onWork()
186 ssize_t framesRead = mInputSource->read(mReadBuffer, frameCount); in onWork()
190 LOG_ALWAYS_FATAL_IF((size_t) framesRead > frameCount); in onWork()
194 patchBuffer.frameCount = framesRead; in onWork()
207 memset(mReadBuffer, 0, frameCount * Format_frameSize(mFormat)); in onWork()
208 mReadBufferState = frameCount; in onWork()
221 patchBuffer.frameCount = framesWritten; in onWork()