Configuring Forked-DAAPD to play over Bluetooth, Local Audio Out and AirPlay
Download the package which has been built specifically with PulseAudio support as the latest release does not include it at the moment
1 2 | sudo wget http://www.gyfgafguf.dk/temp/forked-daapd_24.1.54~rc9-1_armhf.deb /var/cache/apt/archives/partial/forked-daapd_24.1.54~rc9-1_armhf.deb sudo dpkg -i /var/cache/apt/archives/partial/forked-daapd_24.1.54~rc9-1_armhf.deb |
Running the second line should install Forked-DAAPD, but because we’re missing some dependancies it will fail. To overcome this simply run
1 | sudo apt-get install -f |
Once the pre-requisites are installed try Forked-DAAPD again
1 | sudo dpkg -i /var/cache/apt/archives/partial/forked-daapd_24.1.54~rc9-1_armhf.deb |
Next we need to edit the config file to point to your library, we’ll add Spotify later (I’ve found that adding your library and Spotify at the same time create database issues)
My music library is on a Windows share so I need to mount that first, again, we’ll mount on boot in due course.
1 2 | sudo mkdir MusicShare sudo mount -t cifs //<My IP Address>/Music /home/pi/MusicShare -o username=me,password=myPa55word,domain=myDomain |
Then edit the Forked-DAAPD config file through nano to add the path to your music in the directories section.
Now we can start Forked-DAAPD (Finally!)
1 | sudo /etc/init.d/forked-daapd start |
Then check the log file to make sure everything is running as expected
1 | tail -f /var/log/forked-daapd.log |
If all has gone well you’ll see the following
1 2 | [2016-09-27 19:30:06] [ LOG] laudio: Adding Pulseaudio sink 'bcm2835 ALSA Analog Stereo' (alsa_output.0.analog-stereo) with name 'Computer' [2016-09-27 19:30:06] [ LOG] laudio: Adding Pulseaudio sink 'Jam Classic' (bluez_sink.00_1F_81_95_3E_A7) |
Now you can connect your favourite MPD client or follow these instructions to set up a remote such as Retune. Once in the app just select the speakers you want to play to.
Making everything run on startup is as easy as editing /etc/rc.local and adding the following lines before the exit 0 command
1 2 3 4 5 | #Start PulseAudio system wide sudo pulseaudio --system & #Start Forked-DAAPD sudo /etc/init.d/forked-daapd start & |
I’ve even found my speaker automatically connects if I turn it on after the Pi has booted!
Enjoy!