Lines Matching refs:frameCount
117 size_t* frameCount, in getMinFrameCount() argument
121 if (frameCount == NULL) { in getMinFrameCount()
155 *frameCount = calculateMinFrameCount(afLatency, afFrameCount, afSampleRate, sampleRate, 1.0f in getMinFrameCount()
161 if (*frameCount == 0) { in getMinFrameCount()
167 *frameCount, afFrameCount, afSampleRate, afLatency); in getMinFrameCount()
192 size_t frameCount, in AudioTrack() argument
213 frameCount, flags, cbf, user, notificationFrames, in AudioTrack()
282 size_t frameCount, in set() argument
300 streamType, sampleRate, format, channelMask, frameCount, flags, notificationFrames, in set()
345 ALOGV("set() streamType %d frameCount %zu flags %04x", streamType, frameCount, flags); in set()
454 mReqFrameCount = frameCount; in set()
464 if (frameCount > 0) { in set()
466 notificationFrames, frameCount); in set()
1310 size_t frameCount = mReqFrameCount; in createTrack_l() local
1315 frameCount = mSharedBuffer->size(); in createTrack_l()
1316 } else if (frameCount == 0) { in createTrack_l()
1317 frameCount = mAfFrameCount; in createTrack_l()
1319 if (mNotificationFramesAct != frameCount) { in createTrack_l()
1320 mNotificationFramesAct = frameCount; in createTrack_l()
1346 frameCount = mSharedBuffer->size() / mFrameSize; in createTrack_l()
1370 if (frameCount < minFrameCount) { in createTrack_l()
1371 frameCount = minFrameCount; in createTrack_l()
1393 size_t temp = frameCount; // temp may be replaced by a revised value of frameCount, in createTrack_l()
1444 if (temp < frameCount || (frameCount == 0 && temp == 0)) { in createTrack_l()
1448 ALOGW("Requested frameCount %zu but received frameCount %zu", frameCount, temp); in createTrack_l()
1450 frameCount = temp; in createTrack_l()
1455 ALOGV("AUDIO_OUTPUT_FLAG_FAST successful; frameCount %zu", frameCount); in createTrack_l()
1460 ALOGW("AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount %zu", frameCount); in createTrack_l()
1477 maxNotificationFrames = frameCount / nBuffering; in createTrack_l()
1482 maxNotificationFrames, frameCount); in createTrack_l()
1485 mNotificationFramesAct, maxNotificationFrames, frameCount); in createTrack_l()
1513 mLatency = mAfLatency + (1000*frameCount) / mSampleRate; in createTrack_l()
1515 mFrameCount = frameCount; in createTrack_l()
1518 if (frameCount > mReqFrameCount) { in createTrack_l()
1519 mReqFrameCount = frameCount; in createTrack_l()
1528 mProxy = new AudioTrackClientProxy(cblk, buffers, frameCount, mFrameSize); in createTrack_l()
1530 mStaticProxy = new StaticAudioTrackClientProxy(cblk, buffers, frameCount, mFrameSize); in createTrack_l()
1577 audioBuffer->frameCount = 0; in obtainBuffer()
1665 buffer.mFrameCount = audioBuffer->frameCount; in obtainBuffer()
1670 audioBuffer->frameCount = buffer.mFrameCount; in obtainBuffer()
1743 audioBuffer.frameCount = userSize / mFrameSize; in write()
2036 audioBuffer.frameCount = mRemainingFrames; in processAudioBuffer()
2039 LOG_ALWAYS_FATAL_IF((err != NO_ERROR) != (audioBuffer.frameCount == 0), in processAudioBuffer()
2040 "obtainBuffer() err=%d frameCount=%zu", err, audioBuffer.frameCount); in processAudioBuffer()
2042 size_t avail = audioBuffer.frameCount + nonContig; in processAudioBuffer()
2044 mRemainingFrames, avail, audioBuffer.frameCount, nonContig, err); in processAudioBuffer()
2126 audioBuffer.frameCount = releasedFrames; in processAudioBuffer()