Install required dependencies
$ pacman -S avahi pulseaudio-zeroconfEnable and Start Avahi daemon
$ systemctl enable --now avahi-daemon.serviceEnable the required module on Pulseaudio ( paste this at the end of /etc/pulse/default.pa ):
### Enable AirPlay support
load-module module-raop-discoverRestart Pulseaudio:
$ systemctl --user restart pulseaudio.serviceIf everything worked fine you should be able to autodiscover all your AirPlay devices and connect to them.
Enjoy!
I've discovered that with a recent update
pulseaudio-zeroconfhas been split into other packages and now you need to installpulseaudio-rtp. However, after installing that package and restarting the services, the Airplay device now shows up but if I select it as audio output and try to stream audio to it, it just disappear and output is switched back to my laptop speakers. I've tried also with another Arch Linux laptop but I get the same result.All was working fine before latest update.
See here:
archlinux/svntogit-packages@2ee4411#diff-8d0411b338c83cd8cd8ad9d9db127101