# Shared ALSA capture device using dsnoop. # Allows multiple processes (e.g. darkice and ISR) to read from hw:0,0 simultaneously. # # Deploy: # sudo cp asound.conf /etc/asound.conf (host — for darkice) # docker-compose.yml mounts it into the recorder container automatically. # # Both darkice and ISR must use "shared_mic" as their device name instead of "hw:0,0". pcm.shared_mic { type dsnoop ipc_key 1024 ipc_perm 0666 slave { pcm "hw:0,0" channels 2 rate 48000 format S16_LE } }