AudioTrack.SetBufferSizeInFrames(Int32) Method

Definition

Limits the effective size of the <code>AudioTrack</code> buffer that the application writes to.

[Android.Runtime.Register("setBufferSizeInFrames", "(I)I", "GetSetBufferSizeInFrames_IHandler", ApiSince=24)]
public virtual int SetBufferSizeInFrames (int bufferSizeInFrames);
[<Android.Runtime.Register("setBufferSizeInFrames", "(I)I", "GetSetBufferSizeInFrames_IHandler", ApiSince=24)>]
abstract member SetBufferSizeInFrames : int -> int
override this.SetBufferSizeInFrames : int -> int

Parameters

bufferSizeInFrames
Int32

requested buffer size in frames

Returns

Int32

the actual buffer size in frames or an error code, #ERROR_BAD_VALUE, #ERROR_INVALID_OPERATION

Attributes

Remarks

Java documentation for android.media.AudioTrack.setBufferSizeInFrames(int).

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.

Applies to