actually, I've tried something like that before, but didn't work too well.
I had a two-end plug that fit into the speaker output on my computer, and so I plugged it into my A/V receiver and played some music. It WORKED, but it was kind of crappy sounding & had this buzzing noise that drove me nuts.
I suppose theres a better way, just haven't thought about it much.