Instance Method


Prepares the audio engine for starting.


func prepare()


This method preallocates many of the resources that the audio engine requires in order to start. Use it in order to start audio input or output more responsively.

See Also

Playing Audio

var musicSequence: MusicSequence?

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

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

Stops the audio engine and releases any previously prepared resources.

func reset()

Resets all of the audio nodes in the audio engine.