Lines Matching refs:frameCount
143 const size_t frameCount = current->mFrameCount;
176 if ((!Format_isEqual(mFormat, previousFormat)) || (frameCount != previous->mFrameCount)) {
184 if (frameCount > 0 && mSampleRate > 0) {
192 mMixer = new AudioMixer(frameCount, mSampleRate);
196 mMixerBufferSize = mixerFrameSize * frameCount;
201 mSinkBufferSize = sinkFrameSize * frameCount;
204 mPeriodNs = (frameCount * 1000000000LL) / mSampleRate; // 1.00
205 mUnderrunNs = (frameCount * 1750000000LL) / mSampleRate; // 1.75
206 mOverrunNs = (frameCount * 500000000LL) / mSampleRate; // 0.50
207 mForceNs = (frameCount * 950000000LL) / mSampleRate; // 0.95
208 mWarmupNsMin = (frameCount * 750000000LL) / mSampleRate; // 0.75
209 mWarmupNsMax = (frameCount * 1250000000LL) / mSampleRate; // 1.25
222 dumpState->mFrameCount = frameCount;
339 const size_t frameCount = current->mFrameCount;
397 if (framesReady < frameCount) {
439 mono_blend(mMixerBuffer, mMixerBufferFormat, Format_channelCount(mFormat), frameCount,
446 frameCount * Format_channelCount(mFormat));
451 (void) teeSink->write(buffer, frameCount);
457 ssize_t framesWritten = mOutputSink->write(buffer, frameCount);
461 ALOG_ASSERT((size_t) framesWritten <= frameCount);
464 //if ((size_t) framesWritten == frameCount) {