AudioTrack.ReloadStaticData 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 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.