Language

AudioTrack.Builder.SetCodecProvenance(String) Method

Definition

Sets the source codec of the audio data using a media type.

[Android.Runtime.Register("setCodecProvenance", "(Ljava/lang/String;)Landroid/media/AudioTrack$Builder;", "GetSetCodecProvenance_Ljava_lang_String_Handler", ApiSince=37)]
public virtual Android.Media.AudioTrack.Builder SetCodecProvenance(string codecMediaType);
[<Android.Runtime.Register("setCodecProvenance", "(Ljava/lang/String;)Landroid/media/AudioTrack$Builder;", "GetSetCodecProvenance_Ljava_lang_String_Handler", ApiSince=37)>]
abstract member SetCodecProvenance : string -> Android.Media.AudioTrack.Builder
override this.SetCodecProvenance : string -> Android.Media.AudioTrack.Builder

Parameters

codecMediaType
String

a non-null string indicating codec type using media string

Returns

the same Builder instance. This value cannot be null.

Attributes

Remarks

Sets the source codec of the audio data using a media type. This information may be used by the audio framework and the audio HAL for selecting the best spatial renderer. Used when the format of the audio data used for the AudioTrack is different from the original codec. The values for codec media types should be provided using corresponding constants from the MediaFormat class. For example, MediaFormat.MIMETYPE_AUDIO_EAC3_JOC may be used for audio content originating from Dolby Atmos media.

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

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