The DTV box and Xbox1 connect to the TV with HDMI cables.
If both the TV and soundbar have ARC then you connect the soundbar to the HDMI ARC connection on the TV and turn ARC on.
An alternative is to connect the TV optical audio output to the soundbar with a Toslink cable. Turn the optical audio on and the TV speakers off.