Most current home electronics have SPDIF digital coax (RCA jack) or optical (TOSLink) outputs or both. Digital coax jacks are far more common, even appearing in bargain basement DVD players. Most home theater systems have both digital coax and optical inputs.
Digital coax and TOSLink use the same protocols – the only difference is whether the signal is transmitted through a wire or by light. TOSLink has the advantage of no electrical interference, but more limited distance and more expensive connectors and cables. This tutorial describes how to manually select different digital coax (RCA) sources.
Technically you should use 75 ohm shielded cable, but in my experience standard RCA-RCA cables work fine for at least 4 meters (the distance from my computer to my home theater system box).
Step 1: Switch It!
Just hook up an RCA-RCA cable from the switch box’s output to the home theater system’s input. Then hook up each of your electronics with digital outputs to the switchbox’s inputs. Use the same color jack for each jack on the switch box (i.e. all yellow).
I use my switch box to select digital audio from my cable television box, primary computer’s built-in audio and Blu-Ray player. Any digital audio source with a RCA SPDIF output can be used.
The added dimensions for 5.1 sound from the home theater system really make a difference for action movies and concerts.
My cable provider has a couple of dozen digital audio channels. By sending the digital audio directly to the home theater I don't have to waste electricity by powering on the television set just to listen to audio.