setOutputDataSource(_:)
Sets the output data source for an audio session.
Declaration
func setOutputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throwsParameters
- dataSource:
The data source for the audio session’s output.
Discussion
You can change the output source to one of the AVAudioSessionDataSourceDescription objects in the outputDataSources array. Only certain USB accessories support this feature.