Home
last modified time | relevance | path

Searched refs:adjustedFrames (Results 1 – 1 of 1) sorted by relevance

/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp676 int32_t adjustedFrames = requestedFrames; in setBufferSize() local
681 if (adjustedFrames < 1) { in setBufferSize()
682 adjustedFrames = 1; in setBufferSize()
685 if (adjustedFrames > maximumSize) { in setBufferSize()
687 adjustedFrames = maximumSize; in setBufferSize()
690 int32_t numBursts = (adjustedFrames + mFramesPerBurst - 1) / mFramesPerBurst; in setBufferSize()
691 adjustedFrames = numBursts * mFramesPerBurst; in setBufferSize()
693 if (adjustedFrames > maximumSize) { in setBufferSize()
694 adjustedFrames = maximumSize; in setBufferSize()
698 aaudio_result_t result = mAudioEndpoint.setBufferSizeInFrames(adjustedFrames, &actualFrames); in setBufferSize()