/dev/dsp through a FIFO

I created a fifo, made xmms write into that, then wrote a tiny program to both feed into the real /dev/dsp and (stubbed out) send UDP packets to the living room laptop.

But I forgot: to use /dev/dsp you have to use ioctls to set the rate and such, so the sound turned out shitty. Bleh.

So now I have to figure out how to capture and redirect the ioctls ... I guess? Anybody know how to do that?

Okay, enough of this project for today.