How to select external microphone
问题 I've successfully written a simple recording app for iOS that uses AVAudioRecorder. So far it works with either the internal microphone or an external microphone if it's plugged in to the headphone jack. How do I select an audio source that is connected through the USB "lightning port"? Do I have to dive into Core Audio? Specifically I'm trying to connect an Apogee Electronics ONE USB audio interface. 回答1: Using AVAudioSession, get the availableInputs. The return value is an array of