Lines Matching refs:frameCount
68 size_t frameCount,
85 mFrameCount(frameCount),
112 size_t bufferSize = (sharedBuffer == 0 ? roundup(frameCount) : frameCount) * mFrameSize;
137 mCblk->frameCount_ = frameCount;
202 (void) mTeeSink->write(buffer->raw, buffer->frameCount);
207 buf.mFrameCount = buffer->frameCount;
209 buffer->frameCount = 0;
326 size_t frameCount,
331 : TrackBase(thread, client, sampleRate, format, channelMask, frameCount, sharedBuffer,
351 mAudioTrackServerProxy = new AudioTrackServerProxy(mCblk, mBuffer, frameCount,
354 mAudioTrackServerProxy = new StaticAudioTrackServerProxy(mCblk, mBuffer, frameCount,
520 size_t desiredFrames = buffer->frameCount;
523 buffer->frameCount = buf.mFrameCount;
979 size_t frameCount,
987 thread, client, streamType, sampleRate, format, channelMask, frameCount,
998 size_t frameCount,
1003 frameCount, sharedBuffer, sessionId, uid, IAudioFlinger::TRACK_TIMED),
1104 int64_t frameCount = mTimedBufferQueue[trimEnd].buffer()->size()
1107 if (!mMediaTimeToSampleTransform.doReverseTransform(frameCount,
1111 frameCount,
1221 buffer->frameCount = 0;
1236 buffer->frameCount = 0;
1252 timedYieldSilence_l(buffer->frameCount, buffer);
1263 buffer->frameCount = 0;
1272 buffer->frameCount = 0;
1329 ALOGVV("*** on time: head.pos=%d frameCount=%u",
1330 head.position(), buffer->frameCount);
1344 ALOGV("*** silence: frameCount=%u", buffer->frameCount);
1365 ALOGV("*** late: head.pos=%d frameCount=%u", head.position(), buffer->frameCount);
1386 size_t framesRequested = buffer->frameCount;
1387 buffer->frameCount = min(framesLeftInHead, framesRequested);
1408 size_t framesRequested = buffer->frameCount;
1409 buffer->frameCount = min(numFrames, framesRequested);
1450 (buffer->frameCount * mFrameSize));
1453 ALOG_ASSERT(mFramesPendingInQueue >= buffer->frameCount,
1456 buffer->frameCount, mFramesPendingInQueue);
1458 mFramesPendingInQueue -= buffer->frameCount;
1472 buffer->frameCount = 0;
1496 size_t frameCount,
1498 : Track(playbackThread, NULL, AUDIO_STREAM_CNT, sampleRate, format, channelMask, frameCount,
1504 mOutBuffer.frameCount = 0;
1547 mOutBuffer.frameCount = 0;
1557 inBuffer.frameCount = frames;
1572 pInBuffer->frameCount = startFrames;
1591 if (pInBuffer->frameCount == 0) {
1595 if (mOutBuffer.frameCount == 0) {
1596 mOutBuffer.frameCount = pInBuffer->frameCount;
1613 uint32_t outFrames = pInBuffer->frameCount > mOutBuffer.frameCount ? mOutBuffer.frameCount :
1614 pInBuffer->frameCount;
1620 pInBuffer->frameCount -= outFrames;
1622 mOutBuffer.frameCount -= outFrames;
1625 if (pInBuffer->frameCount == 0) {
1639 if (inBuffer.frameCount) {
1644 pInBuffer->mBuffer = new int16_t[inBuffer.frameCount * channelCount];
1645 pInBuffer->frameCount = inBuffer.frameCount;
1647 memcpy(pInBuffer->raw, inBuffer.raw, inBuffer.frameCount * channelCount *
1669 pInBuffer->frameCount = frames;
1685 buf.mFrameCount = buffer->frameCount;
1690 buffer->frameCount = buf.mFrameCount;
1758 size_t frameCount,
1762 channelMask, frameCount, 0 /*sharedBuffer*/, sessionId, uid, false /*isOut*/),
1767 mAudioRecordServerProxy = new AudioRecordServerProxy(mCblk, mBuffer, frameCount,
1783 buf.mFrameCount = buffer->frameCount;
1785 buffer->frameCount = buf.mFrameCount;