Skip to content

Instantly share code, notes, and snippets.

@denmojo
Created April 9, 2024 00:10
Show Gist options
  • Save denmojo/22be858a88ee7dd736479476105309b9 to your computer and use it in GitHub Desktop.
Save denmojo/22be858a88ee7dd736479476105309b9 to your computer and use it in GitHub Desktop.
ALSA hack to expose multi-app access to usb sound device
pcm_slave.digirig {
pcm {
type hw
card Device
}
period_time 0
buffer_size 8192
}
pcm.digirig-dmix {
type dmix
ipc_key 2023041901
slave "digirig"
bindings.0 0
}
pcm.digirig-dsnoop {
type dsnoop
ipc_key 2023041902
slave "digirig"
bindings.0 0
}
pcm.digirig-rx {
type plug
slave.pcm "digirig-dsnoop"
hint.description "digirig RX audio plug"
}
pcm.digirig-tx {
type plug
slave.pcm "digirig-dmix"
hint.description "digirig TX audio plug"
}
@denmojo
Copy link
Author

denmojo commented Apr 9, 2024

Modify ~/.asound.rc for user or /etc/asound.conf to add these lines.

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