Instantly share code, notes, and snippets.

@valir /default.pa
Last active Dec 28, 2018

Embed
What would you like to do?
My pulseaudio configuration for Raspbian and mpd
# /etc/pulse/default.pa
# only showing here the relevant changes
.......
load-module module-native-protocol-unix auth-group=audio socket=/tmp/pulse-server
.......
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.0/24 auth-anonymous=1
load-module module-zeroconf-publish
; /etc/pulse/client.conf
autospawn = no
# /var/lib/mpd/.config/pulse/client.conf
autospawn = no
auto-connect-localhost = yes
# /etc/mpd.conf
# only showing relevant changes
.....
audio_output {
type "pulse"
name "MPD Pulse Output"
server "127.0.0.1"
# sink "" # optional
}
# /lib/systemd/system/pulseaudio.service
# start with: systemctl start pulseaudio.service
# enable on boot: systemctl enable pulseaudio.service
[Unit]
Description=Pulseaudio sound server
After=avahi-daemon.service network.target
[Service]
User=mpd
Group=audio
Type=simple
ExecStart=/usr/bin/pulseaudio --disallow-exit --realtime --no-cpu-limit
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment