Skip to content
project-owner edited this page May 29, 2018 · 4 revisions

In order to make mpd player output PCM data to fifo the following section should be added to the mpd.conf file:

audio_output {
  type   "fifo"
  name   "fifo"
  path   "/home/pi/myfifo"
  format "44100:16:2"
}

The path property should point to the existing fifo which can be created using the following command:

> mkfifo /home/pi/myfifo
> chmod 666 /home/pi/myfifo

The format property ensures that player will send uniform PCM data to the fifo even if the input audio signal is in different format.

After starting mpd player it will send audio data to the sound card and to the fifo/pipe at the same time. In case of mpd player the signal in pipe doesn't depend on player's volume level. mpd player and PeppyMeter can be started in any order.

<<Previous | Next>>