Udostępnij za pośrednictwem


AudioTrack.ReloadStaticData Method

Definition

Sets the playback head position within the static buffer to zero, that is it rewinds to start of static buffer.

[Android.Runtime.Register("reloadStaticData", "()I", "GetReloadStaticDataHandler")]
public virtual Android.Media.TrackStatus ReloadStaticData ();
[<Android.Runtime.Register("reloadStaticData", "()I", "GetReloadStaticDataHandler")>]
abstract member ReloadStaticData : unit -> Android.Media.TrackStatus
override this.ReloadStaticData : unit -> Android.Media.TrackStatus

Returns

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

Attributes

Remarks

Sets the playback head position within the static buffer to zero, that is it rewinds to start of static buffer. The track must be stopped or paused, and the track's creation mode must be #MODE_STATIC.

As of android.os.Build.VERSION_CODES#M, also resets the value returned by #getPlaybackHeadPosition() to zero. For earlier API levels, the reset behavior is unspecified.

Use #setPlaybackHeadPosition(int) with a zero position if the reset of getPlaybackHeadPosition() is not needed.

Java documentation for android.media.AudioTrack.reloadStaticData().

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