Do you plan to have both pc's on at the same time? If so then in theory you could do it the way you suggested.
Otherwise, and probably a better sound quality solution, would be getting a combiner y-adapter, which would combine the two signals. They're usually only about 6" in length, so you'll obviously need extension audio cables as well.
|