| 1 | # An example filter chain that makes a stereo sink that mixes |
| 2 | # the FL and FR channels to a single FL channel |
| 3 | # |
| 4 | # Copy this file into a conf.d/ directory such as |
| 5 | # ~/.config/pipewire/filter-chain.conf.d/ |
| 6 | # |
| 7 | context.modules = [ |
| 8 | { name = libpipewire-module-filter-chain |
| 9 | args = { |
| 10 | node.description = "Mix example" |
| 11 | media.name = "Mix example" |
| 12 | filter.graph = { |
| 13 | nodes = [ |
| 14 | { |
| 15 | name = mix |
| 16 | type = builtin |
| 17 | label = mixer |
| 18 | control = { |
| 19 | "Gain 1" = 0.5 |
| 20 | "Gain 2" = 0.5 |
| 21 | } |
| 22 | } |
| 23 | ] |
| 24 | inputs = [ "mix:In 1" "mix:In 2" ] |
| 25 | outputs = [ "mix:Out" ] |
| 26 | } |
| 27 | capture.props = { |
| 28 | node.name = "mix_input.mix-FL-FR-to-FL" |
| 29 | audio.position = [ FL FR ] |
| 30 | media.class = "Audio/Sink" |
| 31 | } |
| 32 | playback.props = { |
| 33 | node.name = "mix_output.mix-FL-FR-to-FL" |
| 34 | audio.position = [ FL ] |
| 35 | stream.dont-remix = true |
| 36 | node.passive = true |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | ] |