When you want to hook up all your sources such as game console, Blu-ray, media player (Roku, amazon fire TV, Apple TV, etc.), foxtel box, etc. to a switch box and output to your 4k 60hz HDR TV and soundbar or receiver, you will need a 4K 60HZ HDR HDMI switch with two HDMI outputs (one is with audio / video to TV and the other with audio only to soundbar / receiver).
Then how to choose the best HDMI switch supports 4k 60hz HDR and Dolby Atmos audio?
First, if you've 3 or 4 sources, and want to streaming audio through HDMI port, a HDMI switch with four HDMI inputs and one HDMI output with audio / video to your TV, and one HDMI output with audio only. And your soundbar or receiver should be with "HDMI IN" port. Those are with "HDMI ARC" port only can't display audio from HDMI sources, but return audio from TV. It is not a real HDMI port. If your soundbar or receiver only has a "HDMI ARC" port, you can only use optical port. Sonos beam and BOSE 500 are two models with "HDMI ARC" port only.
Second, you only have one source, and you want to switch easily from the source and TV apps. You can choose a cost-effective HDMI splitter with one HDMI 2.0b input and one HDMI 2.0b output for TV, and one HDMI audio output only.
XOLORspace 63021pro may be the choice.
Second, if you don't need to display audio from HDMI but through optical audio port. You need just a HDMI switch with optical out. Optical audio port supports audio format max. 5.1ch.
XOLORspace 23031A HDMI switch with 3 HDMI 2.0b inputs and 1 HDMI 2.0b output for TV, and optical out is recommended.