We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Key is to get pulse audio working in container and mounted to host processes. Post at https://joonas.fi/2020/12/audio-in-docker-containers-linux-audio-subsystems-spotifyd/ gives a nice overview. Here's what i got working:
More links:
libpulse0 libasound2 libasound2-plugins pulseaudio-utils
devcontainer.json
// Add more local mounts to container "mounts": [ "source=/opt/local/renv/cache,target=/renv/cache,type=bind,consistency=cached", "source=/etc/alsa,target=/etc/alsa,type=bind,consistency=cached", "source=/usr/share/alsa,target=/usr/share/alsa,type=bind,consistency=cached", "source=/run/user/1000/pulse/native,target=/run/user/1000/pulse/native,type=bind,consistency=cached" ], "containerEnv": { "PULSE_SERVER": "unix:/run/user/1000/pulse/native" }
paplay
{beepr}
paplay some_file.wav
To route the sound to a custom pulse audio sink:
paplay some_file.wav -d SoundBoard
where SoundBoard is an example of the name
SoundBoard
system2("paplay", args = c("some_file.wav", "-d", "SoundBoard"), wait = FALSE)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Key is to get pulse audio working in container and mounted to host processes. Post at https://joonas.fi/2020/12/audio-in-docker-containers-linux-audio-subsystems-spotifyd/ gives a nice overview. Here's what i got working:
More links:
TODO
Implementation
libpulse0 libasound2 libasound2-plugins pulseaudio-utils
devcontainer.json
paplay
(which the{beepr}
package wraps:To route the sound to a custom pulse audio sink:
where
SoundBoard
is an example of the nameThe text was updated successfully, but these errors were encountered: