Last active
July 16, 2019 14:33
-
-
Save scorpp/454304ca6c88d7e30697 to your computer and use it in GitHub Desktop.
Run pulseaudio server in docker container
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
docker run --rm -ti \ | |
--device=/dev/snd/controlC0 --device=/dev/snd/pcmC0D0p --device=/dev/sndpcmC0D1p --device=/dev/snd/timer \ | |
-p 4713:4713 \ | |
rpi-deb-pulse \ | |
/bin/bash -c "groupadd --gid $(ls -l /dev/snd/controlC0 | cut -d' ' -f4 | xargs getent group | cut -d: -f3) alsadev \ | |
&& gpasswd -a pulse alsadev \ | |
&& pulseaudio --system --high-priority --no-cpu-limit -v \ | |
-L 'module-alsa-sink device=hw:0,0' \ | |
-L 'module-native-protocol-tcp auth-ip-acl=10.2.0.0/24'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see my blogpost http://scorpspot.blogspot.com/2015/10/pulseaudio-server-in-docker-container.html