Instance Method


Pauses the audio engine.


func pause()


When called, this method stops the audio engine and the audio hardware, but does not deallocate the resources allocated by prepare(). When your app does not need to play audio, you should pause or stop the engine (as applicable), to minimize power consumption.

You resume the audio engine by invoking start() again.

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 stop()

Stops the audio engine and releases any previously prepared resources.

func reset()

Resets all of the audio nodes in the audio engine.