Playing Streaming Radio [RealAudio, BBC, OS X] Through an Airport Express

This is a variant of an earlier post, this time using JustePort to send the audio to an Airport Express.

Save this script as 'airradio':


TMP="/tmp/radio-`perl -le 'print localtime()'`"
mkfifo $TMP
cat $TMP | mono /usr/local/bin/JustePort.exe - 10.0.1.1 &
mplayer -playlist "$1" -ao pcm:file=$TMP -prefer-ipv4
then run it like this, for example:

airradio "http://www.bbc.co.uk/radio/aod/shows/rpms/radio3/latejunction.rpm"
(10.0.1.1 is the IP address of the Airport Express)