Lingua

AudioTrack.Builder.SetAudioFormat(AudioFormat) Method

Definition

Sets the format of the audio data to be played by the AudioTrack.

[Android.Runtime.Register("setAudioFormat", "(Landroid/media/AudioFormat;)Landroid/media/AudioTrack$Builder;", "GetSetAudioFormat_Landroid_media_AudioFormat_Handler", ApiSince=23)]
public virtual Android.Media.AudioTrack.Builder SetAudioFormat(Android.Media.AudioFormat format);
[<Android.Runtime.Register("setAudioFormat", "(Landroid/media/AudioFormat;)Landroid/media/AudioTrack$Builder;", "GetSetAudioFormat_Landroid_media_AudioFormat_Handler", ApiSince=23)>]
abstract member SetAudioFormat : Android.Media.AudioFormat -> Android.Media.AudioTrack.Builder
override this.SetAudioFormat : Android.Media.AudioFormat -> Android.Media.AudioTrack.Builder

Parameters

format
AudioFormat

a non-null AudioFormat instance.

Returns

the same Builder instance. This value cannot be null.

Attributes

Remarks

Sets the format of the audio data to be played by the AudioTrack. See AudioFormat.Builder for configuring the audio format parameters such as encoding, channel mask and sample rate.

Android reference for android.media.AudioTrack.Builder.setAudioFormat.

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