From 37b9cd191b8922ba798d941b4853eac8689509ff Mon Sep 17 00:00:00 2001 From: JP Guillemin Date: Sun, 16 May 2021 13:00:01 +0000 Subject: [PATCH] Matrix Spatialiser sink --- .../filter-chain/sink-matrix_spatialiser.conf | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/daemon/filter-chain/sink-matrix_spatialiser.conf diff --git a/src/daemon/filter-chain/sink-matrix_spatialiser.conf b/src/daemon/filter-chain/sink-matrix_spatialiser.conf new file mode 100644 index 000000000..beb5907f9 --- /dev/null +++ b/src/daemon/filter-chain/sink-matrix_spatialiser.conf @@ -0,0 +1,62 @@ +# Matrix Spatialiser sink +# +# start with pipewire -c filter-chain/sink-matrix_spatialiser.conf +# ( Jean-Philippe Guillemin ) + +context.properties = { + log.level = 0 +} + +context.spa-libs = { + audio.convert.* = audioconvert/libspa-audioconvert + support.* = support/libspa-support +} + +context.modules = [ + { name = libpipewire-module-rtkit + args = { + #nice.level = -11 + #rt.prio = 88 + #rt.time.soft = 200000 + #rt.time.hard = 200000 + } + flags = [ ifexists nofail ] + } + { name = libpipewire-module-protocol-native } + { name = libpipewire-module-client-node } + { name = libpipewire-module-adapter } + + { name = libpipewire-module-filter-chain + args = { + node.name = "Matrix Spatialiser" + node.description = "Matrix Spatialiser" + media.name = "Matrix Spatialiser" + filter.graph = { + nodes = [ + { + type = ladspa + name = matrix + plugin = matrix_spatialiser_1422 + label = matrixSpatialiser + control = { + "Width" = 80 + } + } + ] + inputs = [ "matrix:Input L" "matrix:Input R" ] + outputs = [ "matrix:Output L" "matrix:Output R" ] + } + capture.props = { + media.class = Audio/Sink + audio.channels = 2 + audio.position = [ FL FR ] + } + playback.props = { + # media.class = Audio/Source + # node.passive = true + audio.channels = 2 + audio.position = [ FL FR ] + } + } + } +]