From bec20fc054b0c42614923911f636788c02fb1a71 Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Mon, 8 Dec 2025 09:24:07 -0500 Subject: [PATCH] create-item: Only configure audio device sink nodes in MONO This allows multi channel mixing in the graph, even if MONO is enabled. --- po/conf.pot | 2 +- src/config/wireplumber.conf | 2 +- src/scripts/node/create-item.lua | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/po/conf.pot b/po/conf.pot index 7512585a..13641209 100644 --- a/po/conf.pot +++ b/po/conf.pot @@ -165,7 +165,7 @@ msgstr "" #. /wireplumber.settings.schema/node.features.audio.mono/description #: wireplumber.conf -msgid "Configure all audio nodes in MONO" +msgid "Configure all audio device sink nodes in MONO" msgstr "" #. /wireplumber.settings.schema/node.features.audio.mono/name diff --git a/src/config/wireplumber.conf b/src/config/wireplumber.conf index f3b70477..ee1aa1d6 100644 --- a/src/config/wireplumber.conf +++ b/src/config/wireplumber.conf @@ -956,7 +956,7 @@ wireplumber.settings.schema = { } node.features.audio.mono = { name = "Mono" - description = "Configure all audio nodes in MONO" + description = "Configure all audio device sink nodes in MONO" type = "bool" default = false } diff --git a/src/scripts/node/create-item.lua b/src/scripts/node/create-item.lua index e395a9f3..259ebc83 100644 --- a/src/scripts/node/create-item.lua +++ b/src/scripts/node/create-item.lua @@ -16,6 +16,7 @@ items = {} function configProperties (node) local properties = node.properties local media_class = properties ["media.class"] or "" + local factory_name = properties ["factory.name"] or "" -- ensure a media.type is set if not properties ["media.type"] then @@ -40,6 +41,7 @@ function configProperties (node) properties ["item.features.control-port"] = Settings.get_boolean ("node.features.audio.control-port") properties ["item.features.mono"] = + (factory_name == "api.alsa.pcm.sink" or factory_name == "api.bluez5.a2dp.sink") and Settings.get_boolean ("node.features.audio.mono") properties ["node.id"] = node ["bound-id"]