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

TrackStatus

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

Attributes

Remarks

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