diff --git a/src/daemon/filter-chain/sink-mix-FL-FR.conf b/src/daemon/filter-chain/sink-mix-FL-FR.conf new file mode 100644 index 000000000..2d00b275e --- /dev/null +++ b/src/daemon/filter-chain/sink-mix-FL-FR.conf @@ -0,0 +1,39 @@ +# An example filter chain that makes a stereo sink that mixes +# the FL and FR channels to a single FL channel +# +# Copy this file into a conf.d/ directory +# +context.modules = [ + { name = libpipewire-module-filter-chain + args = { + node.description = "Mix example" + media.name = "Mix example" + filter.graph = { + nodes = [ + { + name = mix + type = builtin + label = mixer + control = { + "Gain 1" = 0.5 + "Gain 2" = 0.5 + } + } + ] + inputs = [ "mix:In 1" "mix:In 2" ] + outputs = [ "mix:Out" ] + } + capture.props = { + node.name = "mix_input.mix-FL-FR-to-FL" + audio.position = [ FL FR ] + media.class = "Audio/Sink" + } + playback.props = { + node.name = "mix_output.mix-FL-FR-to-FL" + audio.position = [ FL ] + stream.dont-remix = true + node.passive = true + } + } + } +] diff --git a/src/daemon/filter-chain/duplicate-FL.conf b/src/daemon/filter-chain/source-duplicate-FL.conf similarity index 77% rename from src/daemon/filter-chain/duplicate-FL.conf rename to src/daemon/filter-chain/source-duplicate-FL.conf index 077f3bfac..cd7936247 100644 --- a/src/daemon/filter-chain/duplicate-FL.conf +++ b/src/daemon/filter-chain/source-duplicate-FL.conf @@ -1,4 +1,4 @@ -# An example filter chain for duplicating the FL channel +# 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 @@ -36,13 +36,15 @@ context.modules = [ outputs = [ "copyOL:Out" "copyOR:Out" ] } capture.props = { - node.name = "remap_input.remap-FL-to-FL-FR" - audio.position = [ FL ] + 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 ] + node.name = "remap_output.remap-FL-to-FL-FR" + audio.position = [ FL FR ] + media.class = "Audio/Source" } } }