Freigeben über


AudioTrack.SetPositionNotificationPeriod(Int32) Method

Definition

Sets the period for the periodic notification event.

[Android.Runtime.Register("setPositionNotificationPeriod", "(I)I", "GetSetPositionNotificationPeriod_IHandler")]
public virtual Android.Media.TrackStatus SetPositionNotificationPeriod (int periodInFrames);
[<Android.Runtime.Register("setPositionNotificationPeriod", "(I)I", "GetSetPositionNotificationPeriod_IHandler")>]
abstract member SetPositionNotificationPeriod : int -> Android.Media.TrackStatus
override this.SetPositionNotificationPeriod : int -> Android.Media.TrackStatus

Parameters

periodInFrames
Int32

update period expressed in frames. Zero period means no position updates. A negative period is not allowed.

Returns

error code or success, see #SUCCESS, #ERROR_INVALID_OPERATION

Attributes

Remarks

Sets the period for the periodic notification event.

Java documentation for android.media.AudioTrack.setPositionNotificationPeriod(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