Last active
July 20, 2018 11:57
-
-
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
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
## 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