Home
last modified time | relevance | path

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

/frameworks/av/services/oboeservice/
DAAudioServiceStreamShared.cpp88 int32_t numBursts; in calculateBufferCapacity() local
92 numBursts = MAX_FRAMES_PER_BUFFER / framesPerBurst; in calculateBufferCapacity()
94 numBursts = DEFAULT_BURSTS_PER_BUFFER; in calculateBufferCapacity()
98 numBursts = (requestedCapacityFrames + framesPerBurst - 1) / framesPerBurst; in calculateBufferCapacity()
102 if (numBursts < MIN_BURSTS_PER_BUFFER) { in calculateBufferCapacity()
103 numBursts = MIN_BURSTS_PER_BUFFER; in calculateBufferCapacity()
106 if (numBursts > 0x8000 || framesPerBurst > 0x8000) { in calculateBufferCapacity()
108 numBursts, framesPerBurst); in calculateBufferCapacity()
111 int32_t capacityInFrames = numBursts * framesPerBurst; in calculateBufferCapacity()
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp927 int32_t numBursts = (static_cast<int64_t>(adjustedFrames) + getFramesPerBurst() - 1) / in setBufferSize() local
931 if (numBursts == 0) { in setBufferSize()
932 numBursts = 1; in setBufferSize()
937 (numBursts < MIN_SAMPLE_RATE_CONVERSION_NUM_BURSTS)) { in setBufferSize()
938 numBursts = MIN_SAMPLE_RATE_CONVERSION_NUM_BURSTS; in setBufferSize()
949 numBursts = std::min(numBursts, actualNumBursts); in setBufferSize()
952 const int32_t bufferSizeInFrames = numBursts * getFramesPerBurst(); in setBufferSize()
953 const int32_t deviceBufferSizeInFrames = numBursts * getDeviceFramesPerBurst(); in setBufferSize()
/frameworks/av/media/libaaudio/tests/
Dtest_clock_model.cpp88 const int64_t numBursts = currentTimeFrames / HW_FRAMES_PER_BURST; in checkDriftingClock() local
90 + (numBursts * HW_FRAMES_PER_BURST); in checkDriftingClock()
/frameworks/av/media/libaaudio/examples/utils/
DAAudioArgsParser.h216 void setNumberOfBursts(int32_t numBursts) { in setNumberOfBursts() argument
217 mNumberOfBursts = numBursts; in setNumberOfBursts()