Selects a data source for the audio session’s current input port.
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The data source for the audio session’s input.
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 input data source for the audio session was successfully assigned; otherwise
You can set the input source to exactly one of the
AVAudio objects in the
input array. Only certain devices and peripherals, such as an iPhone equipped with both front- and rear-facing microphones, support switching among input sources.