Skip to content

Instantly share code, notes, and snippets.

@valir
Last active December 28, 2018 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valir/3612113b06cefbfe0bbd33a86bdf2cc5 to your computer and use it in GitHub Desktop.
Save valir/3612113b06cefbfe0bbd33a86bdf2cc5 to your computer and use it in GitHub Desktop.
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