-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable audio in QM container and nested containers Signed-off-by: Douglas Schilling Landgraf <[email protected]>
- Loading branch information
Showing
5 changed files
with
228 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
46 changes: 46 additions & 0 deletions
46
etc/qm/containers/containers.conf.d/qm_dropin_mount_bind_snd.conf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Drop-in configuration for Podman to mount bind /dev/snd from host to container | ||
# | ||
# The ALSA sound architecture uses /dev/snd to represent sound hardware devices | ||
# as special files in the filesystem. These files are typically accessed by | ||
# user-space programs (like media players, audio recorders, or mixers) to | ||
# interact with the sound hardware. Applications do not usually access these | ||
# files directly. Instead, they use higher-level libraries (like PulseAudio, | ||
# PipeWire, or ALSA's own libraries) to interface with the devices. | ||
# | ||
# +-------------------------------------------------------------+ | ||
# | User-Space Applications | | ||
# |-------------------------------------------------------------| | ||
# | Media Players | Audio Recorders | Audio Mixers | | ||
# +-------------------------------------------------------------+ | ||
# | | | | ||
# v v v | ||
# +-------------------------------------------------------------+ | ||
# | High-Level Audio Libraries (User Space) | | ||
# |-------------------------------------------------------------| | ||
# | ALSA Libraries | PulseAudio | PipeWire | | ||
# +-------------------------------------------------------------+ | ||
# | | | | ||
# v v v | ||
# +-------------------------------------------------------------+ | ||
# | /dev/snd (Special Files) | | ||
# | ALSA Kernel Driver exposes sound devices as /dev/snd | | ||
# +-------------------------------------------------------------+ | ||
# | | | | ||
# v v v | ||
# +-------------------------------------------------------------+ | ||
# | ALSA Kernel Sound Drivers (Hardware) | | ||
# | Interfacing with Sound Cards and Audio Devices | | ||
# +-------------------------------------------------------------+ | ||
# | | | | ||
# v v v | ||
# +-------------------------------------------------------------+ | ||
# | Sound Hardware (Speakers, Mics) | | ||
# +-------------------------------------------------------------+ | ||
# | ||
# qm_dropin_mount_bind_snd.conf | ||
[containers] | ||
|
||
# Devices to map for the container (sound device) | ||
devices = [ | ||
"/dev/snd:/dev/snd" | ||
] |
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