Preparation for solution is quite simple:
- Get and install Soundflower -– this is the key component that'll allow routing of all sounds elsewhere.
- Either from Fink or with DarwinPorts (now known as MacPorts) install EsounD package (we'll need the only esdrec utility from there, in fact)
- On UNIX box prepare: netcat, lame, and any MP3 player (I use mplayer).
- Use Soundflower (2ch) as default input and output device on the Mac.
- On UNIX box, start the following: nc -l -p 2048 | lame -b 128 - - | mplayer -nocache - (change 2048 to any other port you want to use; -nocache was added to mplayer startup because on a Solaris box I have caching turned on by default). This will order netcat to listen on given port then pipe data through the MP3 encoder to a MP3 player.
- On OS X type in Terminal: esdrec | nc hostname 2048 (modify hostname to match yours, same goes for port).

