Sets the output data source for an audio session.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The data source for the audio session’s output.
On input, a pointer to an error object. If an error occurs, the system sets the pointer to an
NSErrorobject that describes the error. If you don’t want error information, pass in
YES if the output data source for the audio session was successfully assigned; otherwise,
You can change the output source to one of the
AVAudio objects in the
output array. Only certain USB accessories support this feature.