config: Add new 'node.features.audio.mono' setting

This setting allows users to toggle between MONO audio or not at runtime.
This commit is contained in:
Julian Bouzas 2025-07-03 10:46:28 -04:00 committed by George Kiagiadakis
parent 084b3aab89
commit f82247c42c
3 changed files with 18 additions and 0 deletions

View file

@ -153,6 +153,16 @@ msgstr ""
msgid "Monitor ports" msgid "Monitor ports"
msgstr "" msgstr ""
#. /wireplumber.settings.schema/node.features.audio.mono/description
#: wireplumber.conf
msgid "Configure all audio nodes in MONO"
msgstr ""
#. /wireplumber.settings.schema/node.features.audio.mono/name
#: wireplumber.conf
msgid "Mono"
msgstr ""
#. /wireplumber.settings.schema/node.features.audio.no-dsp/description #. /wireplumber.settings.schema/node.features.audio.no-dsp/description
#: wireplumber.conf #: wireplumber.conf
msgid "Do not convert audio to F32 format" msgid "Do not convert audio to F32 format"

View file

@ -932,6 +932,12 @@ wireplumber.settings.schema = {
type = "bool" type = "bool"
default = false default = false
} }
node.features.audio.mono = {
name = "Mono"
description = "Configure all audio nodes in MONO"
type = "bool"
default = false
}
node.stream.restore-props = { node.stream.restore-props = {
name = "Restore properties" name = "Restore properties"
description = "Remember and restore properties of streams" description = "Remember and restore properties of streams"

View file

@ -39,6 +39,8 @@ function configProperties (node)
Settings.get_boolean ("node.features.audio.monitor-ports") Settings.get_boolean ("node.features.audio.monitor-ports")
properties ["item.features.control-port"] = properties ["item.features.control-port"] =
Settings.get_boolean ("node.features.audio.control-port") Settings.get_boolean ("node.features.audio.control-port")
properties ["item.features.mono"] =
Settings.get_boolean ("node.features.audio.mono")
properties ["node.id"] = node ["bound-id"] properties ["node.id"] = node ["bound-id"]
-- set the default media.role, if configured -- set the default media.role, if configured