Instance Property

outputNode

The audio engine’s singleton output audio node.

Declaration

var outputNode: AVAudioOutputNode { get }

Discussion

When this property is first accessed the audio engine creates a singleton on demand. Connect another audio node to the input of the output audio node, or obtain a mixer that is connected by default, using the mainMixerNode property.

The AVAudioSesssion instance and/or the availability of hardware features determine whether an app can perform output. Check the output format of output node (specifically, the hardware format) for a non-zero sample rate and channel count to see if output is enabled.

See Also

Getting the Input, Output, and Main Mixer Nodes

var inputNode: AVAudioInputNode

The audio engine’s singleton input audio node.

var mainMixerNode: AVAudioMixerNode

The audio engine’s optional singleton main mixer node.