AVAudioPlayer.Play Method

Definition

Plays a sound.

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

Returns

Attributes

Remarks

Application developers should note that this method is asynchronous. Actual playback will occur some time after this method returns.

This method will call PrepareToPlay() if necessary.

Applies to