Instance Method

stop()

Concludes audio playback.

Declaration

func stop() -> Bool

Return Value

true when playback is concluded successfully or if it’s paused, false otherwise.

See Also

Playing Sounds

static func beep()

Plays the system beep.

var isPlaying: Bool

A Boolean that indicates whether the sound is playing its audio data.

func pause() -> Bool

Pauses audio playback.

func play() -> Bool

Initiates audio playback.

func resume() -> Bool

Resumes audio playback.