setPreferredOutput(_:)
Sets the preferred audio output port for the session.
Declaration
func setPreferredOutput(_ outPort: AVAudioSessionPortDescription?) throwsDiscussion
Pass nil to clear the current preference and return to the system’s default output routing.