Add audio_output FIFO to mpd.conf

Raspberry Pi related support

Add audio_output FIFO to mpd.conf

Postby adrii » 19 Apr 2018, 09:16

I would like to add an audio_output FIFO to /etc/mpd.conf, but if I edit /etc/mpd.conf then my changes disappear on reboot.

I am preparing instructions for installing an OLED display program on RuneAudio, and it requires the MPD output FIFO to be set up. The forums mention making /etc/mpd.conf read-only, but if I have understood then this will unnecessarily break normal configuration. What are good general instructions for adding an audio_output section to /etc/mpd.conf?

Thanks

Adrian.
User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: Add audio_output FIFO to mpd.conf

Postby janui » 20 Apr 2018, 11:31

User avatar
janui
 
Posts: 714
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Add audio_output FIFO to mpd.conf

Postby adrii » 20 Apr 2018, 16:22

Hi Janui

Thanks for ypur help. This worked fine. I could implement the change as a patch to save people having to edit code.

For Notes 1, and 3, I have been using an MPD FIFO with a Pi Zero W, and it doesn't appear to contribute significantly to the system load. I have not seen any issues when the OLED software is not running so the FIFO is not being read. (I believe that the FIFO buffer size is limited and relatively small).

For Note 2, Thanks for the extra details. I can't test Spotify or Airplay, but I have been able to stream to RuneAudio with DLNA from an Ubuntu machine (with pulseaudio_dlna), and the audio appears to go through MPD as the OLED spectrum analyser (using the MPD FIFO) and volume indicator (using libmpdclient) were both working correctly.

Adrian.
User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: Add audio_output FIFO to mpd.conf

Postby hondagx35 » 20 Apr 2018, 18:18

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Add audio_output FIFO to mpd.conf

Postby adrii » 20 Apr 2018, 18:54

Hi Frank

This is project, and a demonstration video, it runs on the same machine as the music player




I have successfully built it on RuneAudio, with some minor local changes (the Volumio volume is not the MPD volume), using Clang. It is working fine, (although I had to drop the framerate slightly from 20 to 15 FPS). I have been running it the last couple of hours as a test.

Adrian.
User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: Add audio_output FIFO to mpd.conf

Postby adrii » 22 Apr 2018, 07:10

Hi

My current instructions for getting RuneAudio to regenerate /etc/mpd.conf and restart say: "Restart MPD by going to the RuneUI MPD Configuration page and clicking on 'SAVE AND APPLY' in the volume control section."

Is there a command line command to achieve the same result? (Alternatively, a few commands I could put in a script.)

Thanks

Adrian.
User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: Add audio_output FIFO to mpd.conf

Postby janui » 22 Apr 2018, 15:09

User avatar
janui
 
Posts: 714
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Add audio_output FIFO to mpd.conf

Postby adrii » 22 Apr 2018, 19:34

User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

Re: Add audio_output FIFO to mpd.conf

Postby janui » 23 Apr 2018, 00:46

User avatar
janui
 
Posts: 714
Joined: 20 Dec 2014, 12:55
Location: Ollanda

Re: Add audio_output FIFO to mpd.conf

Postby adrii » 23 Apr 2018, 07:58

User avatar
adrii
 
Posts: 27
Joined: 17 Apr 2018, 11:03

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 9 guests
cron