Home
last modified time | relevance | path

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

/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp695 int32_t adjustedFrames = requestedFrames; in setBufferSize() local
700 if (adjustedFrames < 1) { in setBufferSize()
701 adjustedFrames = 1; in setBufferSize()
704 if (adjustedFrames > maximumSize) { in setBufferSize()
706 adjustedFrames = maximumSize; in setBufferSize()
709 int32_t numBursts = (adjustedFrames + mFramesPerBurst - 1) / mFramesPerBurst; in setBufferSize()
710 adjustedFrames = numBursts * mFramesPerBurst; in setBufferSize()
712 if (adjustedFrames > maximumSize) { in setBufferSize()
713 adjustedFrames = maximumSize; in setBufferSize()
717 aaudio_result_t result = mAudioEndpoint.setBufferSizeInFrames(adjustedFrames, &actualFrames); in setBufferSize()