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