filter-chain: add FL to FL-FR duplication

This commit is contained in:
Wim Taymans 2022-02-03 11:03:24 +01:00
parent 92e58eeb4f
commit 0659f090fc
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,48 @@
# An example filter chain for duplicating the FL channel
# to FL and FR.
#
# Copy this file into a conf.d/ directory
#
context.modules = [
{ name = libpipewire-module-filter-chain
args = {
node.name = "remap-FL-to-FL-FR"
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 = {
audio.position = [ FL ]
stream.dont-remix = true
}
playback.props = {
audio.position = [ FL FR ]
}
}
}
]

View file

@ -1,5 +1,6 @@
conf_files = [
[ 'demonic.conf', 'demonic.conf' ],
[ 'duplicate-FL.conf', 'duplicate-FL.conf' ],
[ 'sink-virtual-surround-5.1-kemar.conf', 'sink-virtual-surround-5.1-kemar.conf' ],
[ 'sink-virtual-surround-7.1-hesuvi.conf', 'sink-virtual-surround-7.1-hesuvi.conf' ],
[ 'sink-dolby-surround.conf', 'sink-dolby-surround.conf' ],