共用方式為


AudioTrack.SetPresentation(AudioPresentation) 方法

定義

設定音訊簡報。

[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

參數

presentation
AudioPresentation

請參閱 AudioPresentation。 特別是,應該設定標識碼。

傳回

錯誤碼或成功,請參閱 #SUCCESS、、#ERROR#ERROR_BAD_VALUE#ERROR_INVALID_OPERATION

屬性

備註

設定音訊簡報。 如果音訊簡報無效, #ERROR_BAD_VALUE 則會傳回 。 如果多資料流譯碼器 (MSD) 不存在,或格式不支援多個簡報, #ERROR_INVALID_OPERATION 則會傳回 。 #ERROR 如果發生任何其他錯誤,則會傳回 。

android.media.AudioTrack.setPresentation(android.media.AudioPresentation)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於