Contents

play()

Initiates audio playback.

Declaration

func play() -> Bool

Return Value

true when playback is initiated, false when playback is already in progress or when an error occurred.

Discussion

This method initiates playback asynchronously and returns control to your application. Therefore, your application can continue doing work while the audio is playing.

See Also

Playing Sounds