How to use the stereo (2 channel) built in microphone in iPhone XS, inside AVAudioSession?
问题 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