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