Lines Matching refs:frameCount
39 size_t* frameCount,
43 if (frameCount == NULL) {
48 *frameCount = 0;
75 *frameCount = (sampleRate == 0) ? afFrameCount * minBufCount :
78 *frameCount, afFrameCount, minBufCount, afSampleRate, afLatency);
98 int frameCount,
114 frameCount, flags, cbf, user, notificationFrames,
140 0 /*frameCount*/, flags, cbf, user, notificationFrames,
221 size_t frameCount = frameCountInt;
226 ALOGV("set() streamType %d frameCount %u flags %04x", streamType, frameCount, flags);
318 mFrameCount = frameCount;
319 mReqFrameCount = frameCount;
341 frameCount,
849 size_t frameCount,
914 // Same comment as below about ignoring frameCount parameter for set()
915 frameCount = sharedBuffer->size();
916 } else if (frameCount == 0) {
917 frameCount = afFrameCount;
919 if (mNotificationFramesAct != frameCount) {
920 mNotificationFramesAct = frameCount;
938 // there's no frameCount parameter.
940 // there _is_ a frameCount parameter. We silently ignore it.
941 frameCount = sharedBuffer->size()/mChannelCount/sizeof(int16_t);
960 if (frameCount == 0) {
961 frameCount = minFrameCount;
962 } else if (frameCount < minFrameCount) {
965 frameCount, minFrameCount);
966 frameCount = minFrameCount;
969 if (mNotificationFramesAct == 0 || mNotificationFramesAct > frameCount/nBuffering) {
970 mNotificationFramesAct = frameCount/nBuffering;
1000 frameCount,
1029 if (temp < frameCountframeCount == 0 && temp == 0)) {
1033 ALOGW("Requested frameCount %u but received frameCount %u", frameCount, temp);
1035 frameCount = temp;
1039 ALOGV("AUDIO_OUTPUT_FLAG_FAST successful; frameCount %u", frameCount);
1045 if (mNotificationFramesAct == 0 || mNotificationFramesAct > frameCount/nBuffering) {
1046 mNotificationFramesAct = frameCount/nBuffering;
1050 ALOGV("AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount %u", frameCount);
1055 if (mNotificationFramesAct == 0 || mNotificationFramesAct > frameCount/nBuffering) {
1056 mNotificationFramesAct = frameCount/nBuffering;
1087 mLatency = afLatency + (1000*frameCount) / sampleRate;
1088 mFrameCount = frameCount;
1089 // If IAudioTrack is re-created, don't let the requested frameCount
1090 // decrease. This can confuse clients that cache frameCount().
1091 if (frameCount > mReqFrameCount) {
1092 mReqFrameCount = frameCount;
1098 mProxy = new AudioTrackClientProxy(cblk, buffers, frameCount, mFrameSizeAF);
1100 mStaticProxy = new StaticAudioTrackClientProxy(cblk, buffers, frameCount, mFrameSizeAF);
1122 audioBuffer->frameCount = 0;
1203 buffer.mFrameCount = audioBuffer->frameCount;
1209 audioBuffer->frameCount = buffer.mFrameCount;
1268 audioBuffer.frameCount = userSize / mFrameSize;
1584 audioBuffer.frameCount = mRemainingFrames;
1587 LOG_ALWAYS_FATAL_IF((err != NO_ERROR) != (audioBuffer.frameCount == 0),
1588 "obtainBuffer() err=%d frameCount=%u", err, audioBuffer.frameCount);
1590 size_t avail = audioBuffer.frameCount + nonContig;
1592 mRemainingFrames, avail, audioBuffer.frameCount, nonContig, err);
1647 audioBuffer.frameCount = releasedFrames;