| 1 |
# This is an example configuration file that shows how to setup a smart filter |
| 2 |
# (an equalizer using filter-chain in this case) |
| 3 |
|
| 4 |
wireplumber.profiles = { |
| 5 |
main = { |
| 6 |
filter.sink.smart-equalizer = required |
| 7 |
} |
| 8 |
} |
| 9 |
|
| 10 |
wireplumber.components = [ |
| 11 |
{ |
| 12 |
name = libpipewire-module-filter-chain, type = pw-module |
| 13 |
arguments = { |
| 14 |
node.name = "filter.sink.smart-equalizer" |
| 15 |
node.description = "2ch Equalizer Sink" |
| 16 |
media.name = "2ch Equalizer Sink" |
| 17 |
filter.graph = { |
| 18 |
nodes = [ |
| 19 |
{ |
| 20 |
type = builtin |
| 21 |
name = bass |
| 22 |
label = bq_lowshelf |
| 23 |
control = { "Freq" = 250.0, "Q" = 1.0, "Gain" = 0.0 } |
| 24 |
} |
| 25 |
{ |
| 26 |
type = builtin |
| 27 |
name = treble |
| 28 |
label = bq_peaking |
| 29 |
control = { "Freq" = 6000.0, "Q" = 1.0, "Gain" = 0.0 } |
| 30 |
} |
| 31 |
] |
| 32 |
links = [ |
| 33 |
{ output = "bass:Out", input = "treble:In" } |
| 34 |
] |
| 35 |
} |
| 36 |
audio.channels = 2 |
| 37 |
audio.position = [ FL, FR ] |
| 38 |
capture.props = { |
| 39 |
# this is a sink filter, so it will appear as a sink in wpctl/pactl/etc, |
| 40 |
# it will target a sink and can be chained with other sink smart filters |
| 41 |
media.class = Audio/Sink |
| 42 |
|
| 43 |
# treat this as a smart filter |
| 44 |
filter.smart = true |
| 45 |
|
| 46 |
# the unique name of the filter |
| 47 |
filter.smart.name = "filter.sink.smart-equalizer" |
| 48 |
|
| 49 |
## set this to always link the filter to a particular sink |
| 50 |
## or leave it unset in order to follow the default sink |
| 51 |
#filter.smart.target = { node.name = "alsa_output.pci-0000_00_01.0.analog-stereo" } |
| 52 |
|
| 53 |
## here you can specify filter dependencies, using their names |
| 54 |
## (filter.smart.name) if you set up many of them to be linked in a chain |
| 55 |
#filter.smart.before = [] |
| 56 |
#filter.smart.after = [] |
| 57 |
} |
| 58 |
playback.props = { |
| 59 |
# This must be set to ensure that the real audio sink is suspended |
| 60 |
# when there is no active client stream linked |
| 61 |
node.passive = true |
| 62 |
|
| 63 |
# Set this to avoid linking the filter to role-based sinks when |
| 64 |
# role-based sinks are defined and node.stream.default-media-role is |
| 65 |
# configured in the settings |
| 66 |
media.role = "DSP" |
| 67 |
} |
| 68 |
} |
| 69 |
provides = filter.sink.smart-equalizer |
| 70 |
} |
| 71 |
] |