-
Notifications
You must be signed in to change notification settings - Fork 2
/
.asoundrc.alsaloopback
76 lines (68 loc) · 1.23 KB
/
.asoundrc.alsaloopback
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
defaults.pcm.card 1
defaults.ctl.card 1
pcm.!default {
type plug
slave.pcm "MainSpliter"
}
# We need a separate splitter cause `apulse` (for Discord)
# cannot connect if default pcm type is `asym`
pcm.MainSpliter {
type asym
playback.pcm "OutputSpliter"
capture.pcm "dsnoop"
# Optional, kept for fun
#capture.pcm "LoopbackOutputIntoMic"
}
# Optional, kept for fun
pcm.LoopbackOutputIntoMicOld {
type dsnoop
ipc_key 1026
slave.pcm "hw:Loopback,1,0"
}
pcm.OutputSpliter {
type plug
slave.pcm mdev
route_policy "duplicate"
}
pcm.mdev {
type multi
slaves.a.pcm pcm.MixSpeaker
slaves.a.channels 2
slaves.b.pcm pcm.MixLoopback
slaves.b.channels 2
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}
pcm.MixSpeaker {
type dmix
ipc_key 1024
#slave.pcm "hw:PCH,0"
slave {
pcm "hw:PCH"
#pcm "hw:PCH,0"
rate 48000
periods 128
period_time 0
period_size 1024 # must be power of 2
buffer_size 8192
}
}
pcm.MixLoopback {
type dmix
ipc_key 1025
#slave.pcm "hw:Loopback,0,0"
slave {
pcm "hw:Loopback,0,0"
rate 48000
periods 128
period_time 0
period_size 1024 # must be power of 2
buffer_size 8192
}
}