Instance Method


Stops the audio engine and releases any previously prepared resources.


func stop()


When called, this method stops the audio engine and the audio hardware, and releases any resources allocated by the prepare() method. When your app doesn't need to play audio, you should pause or stop the engine (as applicable), to minimize power consumption.

See Also

Playing Audio

var musicSequence: MusicSequence?

The music sequence that was previously attached to the audio engine.

func prepare()

Prepares the audio engine for starting.

func start()

Starts the audio engine.

var isRunning: Bool

A Boolean value that indicates whether the audio engine is running.

func pause()

Pauses the audio engine.

func reset()

Resets all of the audio nodes in the audio engine.