framesPerBuffer

public AudioCaptureOptions.Builder framesPerBuffer(int framesPerBuffer)

Sets the number of frames per captured buffer. The default is DEFAULT_FRAMES_PER_BUFFER.

A buffer must last from 10 to 500 milliseconds, that is, the number of frames must be from a hundredth to a half of the sample rate.

Return

this builder

Parameters

framesPerBuffer

the number of frames per captured buffer

Throws

when framesPerBuffer is not positive