AudioRecord.Builder.SetBufferSizeInBytes(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the total size (in bytes) of the buffer where audio data is written during the recording.
[Android.Runtime.Register("setBufferSizeInBytes", "(I)Landroid/media/AudioRecord$Builder;", "GetSetBufferSizeInBytes_IHandler", ApiSince=23)]
public virtual Android.Media.AudioRecord.Builder? SetBufferSizeInBytes(int bufferSizeInBytes);
[<Android.Runtime.Register("setBufferSizeInBytes", "(I)Landroid/media/AudioRecord$Builder;", "GetSetBufferSizeInBytes_IHandler", ApiSince=23)>]
abstract member SetBufferSizeInBytes : int -> Android.Media.AudioRecord.Builder
override this.SetBufferSizeInBytes : int -> Android.Media.AudioRecord.Builder
Parameters
- bufferSizeInBytes
- Int32
a value strictly greater than 0
Returns
the same Builder instance.
- Attributes
Remarks
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.
Android reference for android.media.AudioRecord.Builder.setBufferSizeInBytes.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.