Skip to content

Instantly share code, notes, and snippets.

@scorpp
Last active July 16, 2019 14:33
Show Gist options
  • Save scorpp/454304ca6c88d7e30697 to your computer and use it in GitHub Desktop.
Save scorpp/454304ca6c88d7e30697 to your computer and use it in GitHub Desktop.
Run pulseaudio server in docker container
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'"
@scorpp
Copy link
Author

scorpp commented Oct 22, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment