Contents

setOutputDataSource(_:)

Sets the output data source for an audio session.

Declaration

func setOutputDataSource(_ dataSource: AVAudioSessionDataSourceDescription?) throws

Parameters

  • 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.

See Also

Configuring outputs