Contents

setPreferredOutput(_:)

Sets the preferred audio output port for the session.

Declaration

func setPreferredOutput(_ outPort: AVAudioSessionPortDescription?) throws

Discussion

Pass nil to clear the current preference and return to the system’s default output routing.

See Also

Managing audio output