Language

AudioRecord.Builder.SetAudioFormat(AudioFormat) Method

Definition

Sets the format of the audio data to be captured.

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

Parameters

format
AudioFormat

a non-null AudioFormat instance

Returns

the same Builder instance.

Attributes

Remarks

Sets the format of the audio data to be captured.

Android reference for android.media.AudioRecord.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