can audiostreamer library have this functionality
setBufferSizeInBytes which i found some reference to it here
https://developer.android.com/reference/android/media/AudioRecord.Builder
its really needed to reduce the buffer size on some phones that have a larger buffer size
this will give much more flexibility of the usage of audiostreamer
here is a brief of what this function can do
setBufferSizeInBytes
added in API level 23
public AudioRecord.Builder setBufferSizeInBytes (int bufferSizeInBytes)
Sets the total size (in bytes) of the buffer where audio data is written during the recording. New audio data can be read from this buffer in smaller chunks than this size. See AudioRecord.getMinBufferSize(int, int, int) to determine the minimum required buffer size for the successful creation of an AudioRecord instance. Since bufferSizeInBytes may be internally increased to accommodate the source requirements, use AudioRecord.getBufferSizeInFrames() to determine the actual buffer size in frames.
setBufferSizeInBytes which i found some reference to it here
https://developer.android.com/reference/android/media/AudioRecord.Builder
its really needed to reduce the buffer size on some phones that have a larger buffer size
this will give much more flexibility of the usage of audiostreamer
here is a brief of what this function can do
setBufferSizeInBytes
added in API level 23
public AudioRecord.Builder setBufferSizeInBytes (int bufferSizeInBytes)
Sets the total size (in bytes) of the buffer where audio data is written during the recording. New audio data can be read from this buffer in smaller chunks than this size. See AudioRecord.getMinBufferSize(int, int, int) to determine the minimum required buffer size for the successful creation of an AudioRecord instance. Since bufferSizeInBytes may be internally increased to accommodate the source requirements, use AudioRecord.getBufferSizeInFrames() to determine the actual buffer size in frames.