set Default Buffer Size
Sets the default buffer size for audio streams, which can be set to any positive integer value.
The default buffer size is the number of frames that the audio stream will request from the callback function when it needs more data. A larger buffer size can reduce the chances of audio glitches or dropouts, but it can also increase latency. A smaller buffer size can reduce latency, but it can also increase the chances of audio glitches or dropouts. The optimal buffer size depends on the specific use case and hardware capabilities.
Parameters
size
The default buffer size to set, which must be a positive integer.
Throws
Illegal Argument Exception
if the buffer size is not a positive integer.