This repository has been archived by the owner on Mar 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
asoundrc
174 lines (163 loc) · 2.28 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
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
# default device
pcm.!default {
type plug
slave.pcm "softvol"
}
# main output
pcm.dmixer {
type asym
playback.pcm {
type dmix
ipc_key 1024
slave {
pcm "hw:0"
format S16_LE
period_time 0
period_size 512
buffer_size 24000
rate 48000
}
bindings {
0 0
1 1
}
}
}
# input
pcm.dsnooper {
type dsnoop
ipc_key 1024
slave {
pcm "hw:0"
format S16_LE
channels 2
period_time 0
period_size 512
buffer_size 24000
rate 48000
}
bindings {
0 0
1 1
}
}
# software volume
pcm.softvol {
type softvol
slave {
pcm "dmixer"
}
control {
name "SoftMaster"
card 0
}
}
ctl.!default {
type hw
card 0
}
ctl.softvol {
type hw
card 0
}
ctl.dmixer {
type hw
card 0
}
# mpd volume control
pcm.mpdvol {
type softvol
slave {
pcm "dmixer"
#pcm "softvol"
}
control {
name "MPD"
card 0
}
}
# ctrl for mpd volume
ctl.mpdvol {
type hw
card 0
}
# mpv volume control
pcm.mpv {
type softvol
slave {
pcm "ladcomp_compressor"
pcm "dmixer"
#pcm "softvol"
}
control {
name "MPV"
card 0
}
}
ctl.mpvvol {
type hw
card 0
}
# flash plugin volume control
pcm.firefox {
type softvol
slave {
pcm "ladcomp_compressor"
pcm "dmixer"
#pcm "softvol"
}
control {
name "Firefox"
card 0
}
}
# ctrl for flash volume
ctl.firefoxvol {
type hw
card 0
}
# wine output
pcm.wine {
type plug
slave.pcm "hw:0" # direct output
#slave.pcm "dmixer"
#slave.pcm "softvol"
}
# ladspa plugins
pcm.ladcomp_compressor {
type ladspa
slave.pcm "ladcomp_limiter"
path "/usr/lib/ladspa"
plugins [
{
label dysonCompress
input {
# peak limit, release time, fast ratio, ratio
controls [ 2 1 0.5 0.99 ]
}
}
]
}
pcm.ladcomp_limiter {
type ladspa
slave.pcm "plug:movie8930"
path "/usr/lib/ladspa"
plugins [
{
label fastLookaheadLimiter
input {
# InputGain(Db) -20 -> +20 ; Limit (db) -20 -> 0 ; Release time (s) 0.01 -> 2
# also possible... 20 0 0.8
# If movie is too quiet, increase the first number.
controls [ 5 0 0.8 ]
}
}
]
}
pcm.movie8930 {
type route
slave {
#pcm "dmixer"
pcm "softvol"
}
}