This article collects what I have learnt about streaming network audio with OS X. We’ve been using an Airtunes Express for our home audio needs, but the mini-plug connector has become extremely sketchy. One of the audio channels cuts out unless the connector is positioned just so, and it never stays, so I started looking into alternatives.
We also have a Mac Mini which we use as a home server, so the natural inclination was to stream sound to it instead. All we really need is to be able to stream from iTunes to it, so I first looked into somehow emulating an Airtunes Express with it. Long story short, not possible at this time. In more detail:
Airport Express uses RAOP, a run of the mill audio streaming protocol that encrypts the stream (presumably to make it harder to rip) with Asymmetric Keys. Client side keys are widely known and available as audio clients (Airfoil, JustePort), but nobody has cracked the server (Airport Express) key.
The alternative that everyone else is using is the Enlightenment Sound Daemon. The are lots of articles out there on setting it up (one, two, three), but they’re all missing the critical step of ensuring that the server audio is being streamed to binds to an IPv4 address.
So, the steps:
- Install MacPorts on the client and the server
- On the client and the server: sudo port install esound
- Install SoundFlower on the client
- Reboot the client
- Set SoundFlower (2ch) as both the default input and output devices in sound preferences
- On the server
- run: esd -tcp -public -port 5001 -bind [server ipv4 address]
- open port 5001 on your Firewall. Leopard should simply ask if you want it opened when you start esd. Tiger needs the port explicitly opened.
- On the client
- run: esd -tcp -bind ::1 &
- run: esdrec -s ::1 | esdcat -s [server ipv4 address]:5001
Coming soon: some scripts to wrap the command line stuff and start eSoundD automatically on the server.