Skip to content

Instantly share code, notes, and snippets.

@PsyChip
Last active July 20, 2018 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PsyChip/2e070ede1899fad7752975daffa4f286 to your computer and use it in GitHub Desktop.
Save PsyChip/2e070ede1899fad7752975daffa4f286 to your computer and use it in GitHub Desktop.
alsa configuration file for simultaneous playback from multiple audio sources. no pulseaudio or X server needed
## alsa configuration file for simultaneous playback
## from multiple audio sources
## confirmed on orange pi zero, raspberry pi B+
## save to /etc/asound.conf
## http://psychip.net
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0" #
period_time 0
period_size 1024
buffer_size 4096
rate 44100
}
bindings {
0 0
1 1
}
}
ctl.dmixer {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment