Download:
child 196:bd14782d12cf
parent 194:bcdbd8cfe8b7
195:b4c64636c596
Anton Shestakov <av6@dwimlabs.net>, Fri, 26 Jun 2020 08:55:27 +0800
.asoundrc: capturing desktop audio with ALSA

1 файлов изменено, 33 вставок(+), 0 удалений(-) [+]
.asoundrc file | annotate | diff | comparison | revisions
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.asoundrc Fri Jun 26 08:55:27 2020 +0800
@@ -0,0 +1,33 @@
+# modprobe snd-aloop id=Loopback pcm_substreams=1 timer_source=Generic
+
+pcm.desktop {
+ type plug
+ slave.pcm "dsnoop:CARD=Loopback,DEV=1"
+}
+
+pcm.splitter {
+ type plug
+ slave.pcm {
+ type multi
+ slaves {
+ a { channels 2 pcm "dmix:CARD=Generic,DEV=0" }
+ b { channels 2 pcm "dmix:CARD=Loopback,DEV=0" }
+ }
+ bindings {
+ 0 { slave a channel 0 }
+ 1 { slave a channel 1 }
+ 2 { slave b channel 0 }
+ 3 { slave b channel 1 }
+ }
+ }
+ route_policy "duplicate"
+}
+
+pcm.!default {
+ type asym
+ playback.pcm "splitter"
+ capture.pcm {
+ type plug
+ slave.pcm "dsnoop:CARD=Generic,DEV=0"
+ }
+}