In my setup (like most other insane people, costing many thousands of dollars) I have a nice little piece of plastic that cost $15. It's from Recoton and it's an optical digital switch. It uses Toslink-to-mini adapters, but I have yet to notice any real quality difference.
They're probably available on eBay. You'll also find better switches on eBay for reasonable prices as well as ones that do video as well.
They're probably available on eBay. You'll also find better switches on eBay for reasonable prices as well as ones that do video as well.