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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
| defaults.pcm.rate_converter "speexrate_medium"
| pcm.!default
| {
| type asym
| playback.pcm {
| type plug
| slave.pcm "softvol"
| }
| capture.pcm {
| type plug
| slave {
| pcm "hw:0,0"
| }
| }
| }
|
| pcm.softvol {
| type softvol
| slave.pcm "playback"
| control {
| name "Master Playback Volume"
| card 0
| }
| min_dB -40.0
| max_dB 0.0
| resolution 100
| }
|
| pcm.playback {
| type dmix
| ipc_key 5978293 # must be unique for all dmix plugins!!!!
| ipc_key_add_uid yes
| slave {
| pcm "hw:7,0,0"
| channels 2
| period_size 1024
| buffer_size 4096
| }
| bindings {
| 0 0
| 1 1
| }
| }
|
| pcm.real_playback {
| type dshare
| ipc_key 5978293 # must be unique for all dmix plugins!!!!
| ipc_key_add_uid yes
| slave {
| pcm "hw:0,0"
| channels 2
| rate 48000
| period_size 1024
| buffer_size 4096
| }
| bindings {
| 0 0
| 1 1
| }
| }
|
| #aplay -D plug:ladspa /data/test.wav
| pcm.ladspa {
| type ladspa
| slave.pcm "plug:real_playback"
| channels 2
| path "/usr/lib"
| playback_plugins [{
| label eq_drc_stereo
| input {
| controls [0]
| }
| }]
| }
|
| pcm.multi_2_2 {
| type multi
| slaves.a.pcm "hw:0,0"
| slaves.a.channels 4
| bindings.0.slave a
| bindings.0.channel 0
| bindings.1.slave a
| bindings.1.channel 1
| bindings.2.slave a
| bindings.2.channel 2
| bindings.3.slave a
| bindings.3.channel 3
| }
|
| pcm.multi_2_1 {
| type multi
| slaves.a.pcm "hw:0,0"
| slaves.a.channels 4
| bindings.0.slave a
| bindings.0.channel 0
| bindings.1.slave a
| bindings.1.channel 1
| bindings.2.slave a
| bindings.2.channel 2
| }
|
| pcm.2mic_loopback
| {
| type plug
| slave.pcm "multi_2_1"
| }
|
| pcm.multi_4_1 {
| type multi
| slaves.a.pcm "hw:0,0"
| slaves.a.channels 6
| bindings.0.slave a
| bindings.0.channel 0
| bindings.1.slave a
| bindings.1.channel 1
| bindings.2.slave a
| bindings.2.channel 2
| bindings.3.slave a
| bindings.3.channel 3
| bindings.4.slave a
| bindings.4.channel 4
| }
|
| pcm.4mic_loopback
| {
| type plug
| slave.pcm "multi_4_1"
| }
|
| pcm.multi_8 {
| type multi
| slaves.a.pcm "hw:1,0"
| slaves.b.pcm "hw:0,0"
| slaves.a.channels 8
| slaves.b.channels 2
| bindings.0.slave a
| bindings.0.channel 0
| bindings.1.slave a
| bindings.1.channel 1
| bindings.2.slave a
| bindings.2.channel 2
| bindings.3.slave a
| bindings.3.channel 3
| bindings.4.slave a
| bindings.4.channel 4
| bindings.5.slave a
| bindings.5.channel 5
| bindings.6.slave b
| bindings.6.channel 0
| bindings.7.slave b
| bindings.7.channel 1
| }
|
| pcm.dsnooped_6_2 {
| ipc_key 1027
| type dsnoop
| slave {
| pcm "hw:0,0"
| channels 8
| rate 16000
| period_size 1024
| buffer_size 262144
| }
| }
|
| pcm.6mic_loopback
| {
| type plug
| slave.pcm "dsnooped_6_2"
| }
|
| pcm.fake_record {
| type plug
| slave.pcm "hw:7,1,0"
| }
|
| pcm.fake_play {
| type plug
| slave.pcm "ladspa"
| }
|
| # For headset.
| pcm.fake_jack {
| type plug
| slave.pcm "plug:real_playback"
| }
|
| pcm.mic_rate{
| type rate
| slave {
| pcm "hw:0,0"
| rate 32000
| }
| }
|
|