AudioTrack.SetPresentation(AudioPresentation) Method

Definition

Sets the audio presentation.

[Android.Runtime.Register("setPresentation", "(Landroid/media/AudioPresentation;)I", "GetSetPresentation_Landroid_media_AudioPresentation_Handler", ApiSince=28)]
public virtual Android.Media.TrackStatus SetPresentation (Android.Media.AudioPresentation presentation);
[<Android.Runtime.Register("setPresentation", "(Landroid/media/AudioPresentation;)I", "GetSetPresentation_Landroid_media_AudioPresentation_Handler", ApiSince=28)>]
abstract member SetPresentation : Android.Media.AudioPresentation -> Android.Media.TrackStatus
override this.SetPresentation : Android.Media.AudioPresentation -> Android.Media.TrackStatus

Parameters

presentation
AudioPresentation

see AudioPresentation. In particular, id should be set.

Returns

error code or success, see #SUCCESS, #ERROR, #ERROR_BAD_VALUE, #ERROR_INVALID_OPERATION

Attributes

Remarks

Sets the audio presentation. If the audio presentation is invalid then #ERROR_BAD_VALUE will be returned. If a multi-stream decoder (MSD) is not present, or the format does not support multiple presentations, then #ERROR_INVALID_OPERATION will be returned. #ERROR is returned in case of any other error.

Java documentation for android.media.AudioTrack.setPresentation(android.media.AudioPresentation).

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