Lines Matching refs:frameCount

48         int* frameCount,
69 *frameCount = (sampleRate == 0) ? afFrameCount * minBufCount :
86 int frameCount,
95 frameCount, flags, cbf, user, notificationFrames,
140 int frameCount,
209 mFrameCount = frameCount;
216 frameCount, flags, sharedBuffer, output, true);
278 uint32_t AudioTrack::frameCount() const
280 return mCblk->frameCount;
518 loopEnd - loopStart > cblk->frameCount) {
519 LOGE("setLoop invalid value: loopStart %d, loopEnd %d, loopCount %d, framecount %d, user %d", loopStart, loopEnd, loopCount, cblk->frameCount, cblk->user);
523 if ((mSharedBuffer != 0) && (loopEnd > cblk->frameCount)) {
525 loopStart, loopEnd, cblk->frameCount);
625 mCblk->stepUser(mCblk->frameCount);
658 int frameCount,
687 frameCount = sharedBuffer->size();
697 if (frameCount == 0) {
698 frameCount = minFrameCount;
701 mNotificationFramesAct = frameCount/2;
705 if (mNotificationFramesAct > (uint32_t)frameCount/2) {
706 mNotificationFramesAct = frameCount/2;
708 if (frameCount < minFrameCount) {
710 LOGE("Invalid buffer size: minFrameCount %d, frameCount %d", minFrameCount, frameCount);
713 frameCount = minFrameCount;
722 frameCount = sharedBuffer->size()/channelCount/sizeof(int16_t);
731 frameCount,
758 mCblk->stepUser(mCblk->frameCount);
767 mLatency = afLatency + (1000*mCblk->frameCount) / sampleRate;
776 uint32_t framesReq = audioBuffer->frameCount;
779 audioBuffer->frameCount = 0;
860 uint32_t bufferEnd = cblk->userBase + cblk->frameCount;
868 audioBuffer->frameCount = framesReq;
883 cblk->stepUser(audioBuffer->frameCount);
907 audioBuffer.frameCount = userSize/frameSize();
957 if (mCblk->server == mCblk->frameCount) {
999 audioBuffer.frameCount = frames;
1051 audioBuffer.frameCount = writtenSize/mCblk->frameSize;
1053 frames -= audioBuffer.frameCount;
1077 snprintf(buffer, 255, " format(%d), channel count(%d), frame count(%d)\n", mFormat, mChannelCount, mCblk->frameCount);
1112 userBase(0), serverBase(0), buffers(0), frameCount(0),
1118 uint32_t audio_track_cblk_t::stepUser(uint32_t frameCount)
1122 u += frameCount;
1134 if (u >= userBase + this->frameCount) {
1135 userBase += this->frameCount;
1146 bool audio_track_cblk_t::stepServer(uint32_t frameCount)
1165 s += frameCount;
1190 if (s >= serverBase + this->frameCount) {
1191 serverBase += this->frameCount;
1219 return limit + frameCount - u;
1221 return frameCount + u - s;