Instance Property

selectedDataSource

The currently selected audio data source for the port.

Declaration

var selectedDataSource: AVAudioSessionDataSourceDescription? { get }

Discussion

If nil, the port does not support selecting between multiple data sources.

See Also

Managing a Port’s Data Sources

var dataSources: [AVAudioSessionDataSourceDescription]?

The available data sources for the port.

var preferredDataSource: AVAudioSessionDataSourceDescription?

The preferred audio data source for the port.

func setPreferredDataSource(AVAudioSessionDataSourceDescription?)

Sets the preferred audio data source for the port.