Making AirPlay work with Raspbmc (Mac OS X)

Raspbmc, the Raspberry PI port of the popular XBMC software allows the Pi to receive AirPlay audio content (e.g. from iTunes).

To make this work you need to change XBMC settings to allow AirPlay content.
Go to Settings - Services - AirPlay and enable "Allow XBMC to receive AirPlay content".

Once you do this, Pi will show up as an AirPlay device.

Click XBMC and you get this error:

"An error occurred while connecting to the AirPlay device
"XBMC (raspbmc). An unknown error occurred (-15000).

To fix this, on your Mac go to
Settings - Sound - Output and select XBMC as the output.

And voila!

Linux raspbmc 3.6.11 #2 PREEMPT Sat Jun 15 21:45:28 UTC 2013 armv6l GNU/Linux
OSX 10.8.4
iTunes 11.0.4