Contents

outputDataSources

An array of available output data sources for the current audio route.

Declaration

var outputDataSources: [AVAudioSessionDataSourceDescription]? { get }

Discussion

This property returns an array of AVAudioSessionDataSourceDescription objects representing available output sources, or nil if switching between multiple output sources isn’t currently possible. Only certain USB accessories support this feature.

You can observe changes to the value of this property by using key-value observing.

See Also

Configuring outputs