AudioTrack.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 read from for playback.
[Android.Runtime.Register("setBufferSizeInBytes", "(I)Landroid/media/AudioTrack$Builder;", "GetSetBufferSizeInBytes_IHandler", ApiSince=23)]
public virtual Android.Media.AudioTrack.Builder SetBufferSizeInBytes(int bufferSizeInBytes);
[<Android.Runtime.Register("setBufferSizeInBytes", "(I)Landroid/media/AudioTrack$Builder;", "GetSetBufferSizeInBytes_IHandler", ApiSince=23)>]
abstract member SetBufferSizeInBytes : int -> Android.Media.AudioTrack.Builder
override this.SetBufferSizeInBytes : int -> Android.Media.AudioTrack.Builder
Parameters
- bufferSizeInBytes
- Int32
Value is 0 or greater
Returns
the same Builder instance. This value cannot be null.
- Attributes
Remarks
Sets the total size (in bytes) of the buffer where audio data is read from for playback. If using the AudioTrack in streaming mode (see AudioTrack.MODE_STREAM, you can write data into this buffer in smaller chunks than this size. See AudioTrack.getMinBufferSize(int, int, int) to determine the estimated minimum buffer size for the creation of an AudioTrack instance in streaming mode. If using the AudioTrack in static mode (see AudioTrack.MODE_STATIC ), this is the maximum size of the sound that will be played by this instance.
Android reference for android.media.AudioTrack.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.