From 0659f090fc135e28544609ca577b6aac3c38f12e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 3 Feb 2022 11:03:24 +0100 Subject: [PATCH] filter-chain: add FL to FL-FR duplication --- src/daemon/filter-chain/duplicate-FL.conf | 48 +++++++++++++++++++++++ src/daemon/filter-chain/meson.build | 1 + 2 files changed, 49 insertions(+) create mode 100644 src/daemon/filter-chain/duplicate-FL.conf diff --git a/src/daemon/filter-chain/duplicate-FL.conf b/src/daemon/filter-chain/duplicate-FL.conf new file mode 100644 index 000000000..79c4f98e9 --- /dev/null +++ b/src/daemon/filter-chain/duplicate-FL.conf @@ -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 ] + } + } + } +] diff --git a/src/daemon/filter-chain/meson.build b/src/daemon/filter-chain/meson.build index de650c4f3..c0540c1ff 100644 --- a/src/daemon/filter-chain/meson.build +++ b/src/daemon/filter-chain/meson.build @@ -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' ],