Partager via


AudioTrack.SetNotificationMarkerPosition(Int32) Method

Definition

Sets the position of the notification marker.

[Android.Runtime.Register("setNotificationMarkerPosition", "(I)I", "GetSetNotificationMarkerPosition_IHandler")]
public virtual Android.Media.TrackStatus SetNotificationMarkerPosition (int markerInFrames);
[<Android.Runtime.Register("setNotificationMarkerPosition", "(I)I", "GetSetNotificationMarkerPosition_IHandler")>]
abstract member SetNotificationMarkerPosition : int -> Android.Media.TrackStatus
override this.SetNotificationMarkerPosition : int -> Android.Media.TrackStatus

Parameters

markerInFrames
Int32

marker position in wrapping frame units similar to #getPlaybackHeadPosition, or zero to disable the marker. To set a marker at a position which would appear as zero due to wraparound, a workaround is to use a non-zero position near zero, such as -1 or 1.

Returns

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

Attributes

Remarks

Sets the position of the notification marker. At most one marker can be active.

Java documentation for android.media.AudioTrack.setNotificationMarkerPosition(int).

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