A route description manages the input and output ports associated with the current audio route for a session.


You do not create instances of this class yourself. Instead, you retrieve the current audio route from your app’s AVAudioSession object.


Getting the Input and Output Ports

var inputs: [AVAudioSessionPortDescription]

An array of audio input port descriptions.

var outputs: [AVAudioSessionPortDescription]

An array of audio output port descriptions.


Inherits From

Conforms To

See Also

Supporting Types

protocol AVAudioSessionDelegate

The use of this protocol is deprecated in iOS 6 and later. Instead, you should use the notifications declared in AVAudioSession.

class AVAudioSessionChannelDescription

A channel description provides descriptive information about a hardware channel on the current device.

class AVAudioSessionDataSourceDescription

A data source description defines a data source for an audio input or output, providing information such as the source’s name, location and orientation.

class AVAudioSessionPortDescription

A port description object describes a single input or output port associated with an audio route. You can use the information in this class to obtain information about the capabilities of the port and the hardware channels it supports.