Last active
December 28, 2018 11:18
-
-
Save valir/3612113b06cefbfe0bbd33a86bdf2cc5 to your computer and use it in GitHub Desktop.
My pulseaudio configuration for Raspbian and mpd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; /etc/pulse/client.conf | |
autospawn = no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /var/lib/mpd/.config/pulse/client.conf | |
autospawn = no | |
auto-connect-localhost = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/mpd.conf | |
# only showing relevant changes | |
..... | |
audio_output { | |
type "pulse" | |
name "MPD Pulse Output" | |
server "127.0.0.1" | |
# sink "" # optional | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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