Instance Method

prepare()

Prepares the audio engine for starting.

Declaration

func prepare()

Discussion

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software