Lines Matching refs:frameCount

53         int* frameCount,
57 if (frameCount == NULL) return BAD_VALUE;
60 *frameCount = 0;
85 *frameCount = (sampleRate == 0) ? afFrameCount * minBufCount :
88 *frameCount, afFrameCount, minBufCount, afSampleRate, afLatency);
107 int frameCount,
119 frameCount, flags, cbf, user, notificationFrames,
129 int frameCount,
141 frameCount, (audio_output_flags_t)flags, cbf, user, notificationFrames,
162 0 /*frameCount*/, flags, cbf, user, notificationFrames,
191 int frameCount,
203 ALOGV("set() streamType %d frameCount %d flags %04x", streamType, frameCount, flags);
274 mFrameCount = frameCount;
291 frameCount,
352 uint32_t AudioTrack::frameCount() const
354 return mCblk->frameCount;
618 loopEnd - loopStart > cblk->frameCount ||
620 ALOGE("setLoop invalid value: loopStart %d, loopEnd %d, loopCount %d, framecount %d, user %d", loopStart, loopEnd, loopCount, cblk->frameCount, cblk->user);
624 if ((mSharedBuffer != 0) && (loopEnd > cblk->frameCount)) {
626 loopStart, loopEnd, cblk->frameCount);
713 mCblk->stepUser(mCblk->frameCount);
754 int frameCount,
791 // Same comment as below about ignoring frameCount parameter for set()
792 frameCount = sharedBuffer->size();
793 } else if (frameCount == 0) {
798 frameCount = afFrameCount;
818 // there's no frameCount parameter.
820 // there _is_ a frameCount parameter. We silently ignore it.
821 frameCount = sharedBuffer->size()/channelCount/sizeof(int16_t);
844 if (frameCount == 0) {
845 frameCount = minFrameCount;
848 mNotificationFramesAct = frameCount/2;
852 if (mNotificationFramesAct > (uint32_t)frameCount/2) {
853 mNotificationFramesAct = frameCount/2;
855 if (frameCount < minFrameCount) {
858 frameCount, minFrameCount);
859 frameCount = minFrameCount;
884 frameCount,
908 ALOGV("AUDIO_OUTPUT_FLAG_FAST successful; frameCount %u", mCblk->frameCount);
910 ALOGV("AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount %u", mCblk->frameCount);
916 mNotificationFramesAct = mCblk->frameCount/2;
924 mCblk->stepUser(mCblk->frameCount);
934 mLatency = afLatency + (1000*mCblk->frameCount) / sampleRate;
935 // If IAudioTrack is re-created, don't let the requested frameCount
936 // decrease. This can confuse clients that cache frameCount().
937 if (mCblk->frameCount > mFrameCount) {
938 mFrameCount = mCblk->frameCount;
949 uint32_t framesReq = audioBuffer->frameCount;
952 audioBuffer->frameCount = 0;
1036 uint32_t bufferEnd = cblk->userBase + cblk->frameCount;
1044 audioBuffer->frameCount = framesReq;
1059 mCblk->stepUser(audioBuffer->frameCount);
1060 if (audioBuffer->frameCount > 0) {
1105 audioBuffer.frameCount = userSize/frameSz;
1210 if (active && (cblk->framesAvailable() == cblk->frameCount)) {
1214 if (cblk->server == cblk->frameCount) {
1263 audioBuffer.frameCount = frames;
1308 audioBuffer.frameCount = writtenSize/mCblk->frameSize;
1310 frames -= audioBuffer.frameCount;
1374 frames = ((user - server) > mCblk->frameCount) ?
1375 mCblk->frameCount : (user - server);
1386 mCblk->stepUser(mCblk->frameCount);
1444 snprintf(buffer, 255, " format(%d), channel count(%d), frame count(%d)\n", mFormat, mChannelCount, mCblk->frameCount);
1508 userBase(0), serverBase(0), buffers(NULL), frameCount(0),
1514 uint32_t audio_track_cblk_t::stepUser(uint32_t frameCount)
1516 ALOGV("stepuser %08x %08x %d", user, server, frameCount);
1519 u += frameCount;
1531 uint32_t fc = this->frameCount;
1552 bool audio_track_cblk_t::stepServer(uint32_t frameCount)
1554 ALOGV("stepserver %08x %08x %d", user, server, frameCount);
1564 s += frameCount;
1590 uint32_t fc = this->frameCount;
1628 return limit + frameCount - u;
1630 return frameCount + u - s;