Home | History | Annotate | Download | only in libmedia

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);
97 int frameCount,
111 frameCount, flags, cbf, user, notificationFrames,
134 0 /*frameCount*/, flags, cbf, user, notificationFrames,
214 size_t frameCount = frameCountInt;
219 ALOGV("set() streamType %d frameCount %u flags %04x", streamType, frameCount, flags);
311 mFrameCount = frameCount;
312 mReqFrameCount = frameCount;
329 frameCount,
808 size_t frameCount,
872 // Same comment as below about ignoring frameCount parameter for set()
873 frameCount = sharedBuffer->size();
874 } else if (frameCount == 0) {
875 frameCount = afFrameCount;
877 if (mNotificationFramesAct != frameCount) {
878 mNotificationFramesAct = frameCount;
896 // there's no frameCount parameter.
898 // there _is_ a frameCount parameter. We silently ignore it.
899 frameCount = sharedBuffer->size()/mChannelCount/sizeof(int16_t);
918 if (frameCount == 0) {
919 frameCount = minFrameCount;
920 } else if (frameCount < minFrameCount) {
923 frameCount, minFrameCount);
924 frameCount = minFrameCount;
927 if (mNotificationFramesAct == 0 || mNotificationFramesAct > frameCount/nBuffering) {
928 mNotificationFramesAct = frameCount/nBuffering;
958 frameCount,
986 if (temp < frameCount || (frameCount == 0 && temp == 0)) {
990 ALOGW("Requested frameCount %u but received frameCount %u", frameCount, temp);
992 frameCount = temp;
996 ALOGV("AUDIO_OUTPUT_FLAG_FAST successful; frameCount %u", frameCount);
1000 if (mNotificationFramesAct == 0 || mNotificationFramesAct > frameCount) {
1001 mNotificationFramesAct = frameCount;
1005 ALOGV("AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount %u", frameCount);
1010 if (mNotificationFramesAct == 0 || mNotificationFramesAct > frameCount/nBuffering) {
1011 mNotificationFramesAct = frameCount/nBuffering;
1042 mLatency = afLatency + (1000*frameCount) / sampleRate;
1043 mFrameCount = frameCount;
1044 // If IAudioTrack is re-created, don't let the requested frameCount
1045 // decrease. This can confuse clients that cache frameCount().
1046 if (frameCount > mReqFrameCount) {
1047 mReqFrameCount = frameCount;
1053 mProxy = new AudioTrackClientProxy(cblk, buffers, frameCount, mFrameSizeAF);
1055 mStaticProxy = new StaticAudioTrackClientProxy(cblk, buffers, frameCount, mFrameSizeAF);
1077 audioBuffer->frameCount = 0;
1158 buffer.mFrameCount = audioBuffer->frameCount;
1164 audioBuffer->frameCount = buffer.mFrameCount;
1223 audioBuffer.frameCount = userSize / mFrameSize;
1541 audioBuffer.frameCount = mRemainingFrames;
1544 LOG_ALWAYS_FATAL_IF((err != NO_ERROR) != (audioBuffer.frameCount == 0),
1545 "obtainBuffer() err=%d frameCount=%u", err, audioBuffer.frameCount);
1547 size_t avail = audioBuffer.frameCount + nonContig;
1549 mRemainingFrames, avail, audioBuffer.frameCount, nonContig, err);
1604 audioBuffer.frameCount = releasedFrames;