setPreferredInputOrientation(_:)
Sets the audio session’s preferred stereo input orientation.
Declaration
func setPreferredInputOrientation(_ orientation: AVAudioSession.StereoOrientation) throwsParameters
- orientation:
The stereo orientation.
Discussion
Configure the input orientation to match how the user is holding the device when they begin recording. In a single-window app, set the input orientation to a value corresponding to the app’s user interface orientation.