Skip to content

Instantly share code, notes, and snippets.

@PsyChip PsyChip/asound.conf
Last active Jul 20, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.