-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.asoundrc
68 lines (60 loc) · 1.56 KB
/
.asoundrc
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
defaults.pcm.rate_converter "speexrate_medium"
# dsnooped input
# dsnooped allows multiple applications to use an input device (microphone)
# without dsnoop, devices are exclusive, and the mic can only be used by one app at a time.
pcm.dsnooped {
type dsnoop
ipc_key 5978293 # must be unique for all dmix plugins!
ipc_key_add_uid yes
slave {
pcm "hw:Microphone"
channels 2
period_size 1024
buffer_size 8192
periods 0
period_time 0
}
}
# dmixed output
# this operates under the same principles as dsnoop
# it prevents device-exclusivity.
pcm.dmixed {
type dmix
ipc_key 1568423
slave {
pcm "hw:3,0" # Sound BlasterX Katana
period_time 0
buffer_time 0
period_size 1024
buffer_size 32768
format S24_LE
rate 96000
}
bindings {
0 0
1 1
}
}
# this 'combines' both input and output devices into a single pseudo-device
pcm.asymd {
type asym
playback.pcm "dmixed"
capture.pcm "dsnooped"
}
# this sets the above combined device as the default input/output
pcm.!default {
type plug
slave.pcm "asymd"
}
ctl.!default {
type hw
card 3
}
# Pulse adapters
# https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/PerfectSetup/
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}