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