# STEP20
# Add Airplay server (16 bit 44.1 audio only)
# using your DAC to listen music from Apple devices
# We’re going to build the latest ShairportSync project which is the best implementation of airplay today
# building ShairportSync type these cmds:
# get dependencies:
$ sudo apt-get install autoconf automake avahi-daemon build-essential git libasound2-dev libavahi-client-dev libconfig-dev libdaemon-dev libpopt-dev libssl-dev libtool xmltoman
# get source:
$ cd ~/Downloads/
$ git clone https://github.com/mikebrady/shairport-sync.git
# build (with alsa):
$ cd shairport-sync
$ autoreconf -i -f
$ ./configure --with-alsa --with-avahi --with-ssl=openssl --with-systemd --with-metadata
# Make and install:
# make
$ sudo make install
# Activate:
$ sudo systemctl enable shairport-sync
# Edit conf. with 2 change only:
# type:
$ sudo nano /etc/shairport-sync.conf
# in general section:
name = "MusicLounge";
# in alsa section:
output_device = "plughw:1,0"
# CTRL+O to save
# CTRL+X to exit
# Start:
$ sudo service shairport-sync start
# That's it!
# on AMD64 (Debian 10 buster 64 Bit) if airplay service failed to start with error Failed to start Avahi mDNS/DNS-SD Stack
# then do the following
$ sudo systemctl stop docker
$ sudo systemctl stop docker.socket
# reinstall corrupted lib
$ cd ~/Downloads
# download
$ sudo wget http://ftp.de.debian.org/debian/pool/main/a/avahi/libavahi-core7_0.7-4+deb10u1_amd64.deb
# install:
$ dpkg -i libavahi-core7_0.7-4+deb10u1_amd64.deb
$ sudo apt reinstall avahi-daemon
$ sudo reboot
# Mode info on shairport sync:
https://github.com/mikebrady/shairport-sync-for-openwrt