Instance Property

inputNode

The audio engine’s singleton input audio node.

Declaration

@property(readonly, nonatomic) AVAudioInputNode *inputNode;

Discussion

The audio engine creates a singleton on demand when inputNode is first accessed. To receive input, connect another audio node from the output of the input audio node, or create a recording tap on it.

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

See Also

Getting the Input, Output, and Main Mixer Nodes

outputNode

The audio engine’s singleton output audio node.

mainMixerNode

The audio engine’s optional singleton main mixer node.