The alsa-module is the most important, but you will also need at least libsamplerate. Make sure you have everything that you need compiled in.
System Config Path: /usr/local/var/lib/pulseĬFLAGS: -g -O2 -Wall -W -Wextra -pipe -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option System State Path: /usr/local/var/lib/pulse System Runtime Path: /usr/local/var/run/pulse It will look like this: prefix: /usr/local Now check the output of teh configuration process. Now you can get, extract, configure pulseaudio.
#Install pulseaudio install
Note that I did not install the X11 headers as Pulseaudio will run in systems mode. This will install not only these packages, but also a lot of dependencies. Note that you need to install a lot of prerequisites before you start to configure and compile pulseaudio: sudo apt-get install -y libltdl-dev libsamplerate0-dev libsndfile1-dev libglib2.0-dev libasound2-dev libavahi-client-dev libspeexdsp-dev liborc-0.4-dev libbluetooth-dev intltool libtdb-dev libssl-dev libudev-dev libjson0-dev bluez-firmware bluez-utils libbluetooth-dev bluez-alsa libsbc-dev libcap-dev This also allows to use PulseAudio 5 instead of version 2 that it part of the Raspbian distribution. Therefore I decided to build my own pulseaudio package. I was not able to use the “ffmpeg” resampler with it. Unfortunately the Raspbian pulseaudio package does not include some resamplers. It creates an additional abstraction layer that allows different sound sources to use is simultaneously. The solution for this and some other issues is PulseAudio. The I2S sound system allows only exclusive access to the sound subsystem. If you want to have different programs sending their output to the same sound card (like the HiFiBerry DAC+) on the Raspberry Pi you might run into problem.