I'm trying to get both channels from the supposedly stereo rear microphone out of the iPhone XS but can only ever see a single channel at various points in the AVAudioSession and AVAudioSessionPortDescription's associated with the rear camera.
I have tried using AVAudioSession APIs like setPreferredInputNumberOfChannels:
do {
try session.setPreferredInputNumberOfChannels(2)
} catch let error {
debugPrint("\(error)")
}
But get an error:
Error Domain=NSOSStatusErrorDomain Code=-50
Has anyone had experience getting a 2-channel built-in mic route working?