AudioTrack.SetNotificationMarkerPosition(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.