AVAudioPlayer.PrepareToPlay 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.
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.