I use the X-Box as my primary streamer because of the flexible settings for audio.
If you select passthrough the X-Box will send the raw native audio of whatever you are streaming as long as your sound bar supports it.
I recommend setting it to Dolby Digital or DTS as your sound bar will likely be able to decode those codecs. Try both settings and see if you have a preference. If you leave pass through off all audio will be output in that format. Of the two my preference is DTS but YMMV.