Contents

play()

Plays audio asynchronously.

Declaration

func play() -> Bool

Return Value

true if playback starts successfully; otherwise, false.

Discussion

Calling this method implicitly calls prepareToPlay() if the audio player is unprepared for playback.

See Also

Controlling playback