blob: 7e0158f1834af757fae8efa9d1a5d392796ed50d (
plain)
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
|
# An example filter chain that makes a source that duplicates the FL channel
# to FL and FR.
#
# Copy this file into a conf.d/ directory such as
# ~/.config/pipewire/filter-chain.conf.d/
#
context.modules = [
{ name = libpipewire-module-filter-chain
args = {
node.description = "Remap example"
media.name = "Remap example"
filter.graph = {
nodes = [
{
name = copyIL
type = builtin
label = copy
}
{
name = copyOL
type = builtin
label = copy
}
{
name = copyOR
type = builtin
label = copy
}
]
links = [
# we can only tee from nodes, not inputs so we need
# to copy the inputs and then tee.
{ output = "copyIL:Out" input = "copyOL:In" }
{ output = "copyIL:Out" input = "copyOR:In" }
]
inputs = [ "copyIL:In" ]
outputs = [ "copyOL:Out" "copyOR:Out" ]
}
capture.props = {
node.name = "remap_input.remap-FL-to-FL-FR"
audio.position = [ FL ]
stream.dont-remix = true
node.passive = true
}
playback.props = {
node.name = "remap_output.remap-FL-to-FL-FR"
audio.position = [ FL FR ]
media.class = "Audio/Source"
}
}
}
]
|