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 pointer is set to an
NSErrorobject that describes the error. If you do not 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. This feature is supported only on certain USB accessories.