Edytuj

Udostępnij za pośrednictwem


AVAudioPlayer.PrepareToPlay Method

Definition

Preloads the playback buffers.

[Foundation.Export("prepareToPlay")]
public virtual bool PrepareToPlay ();
abstract member PrepareToPlay : unit -> bool
override this.PrepareToPlay : unit -> bool

Returns

true if successful.

Attributes

Remarks

The Play() function will call this method if necessary, but application developers may choose to explicitly call it in order to minimize startup lag.

Applies to