Wireplumber Settings: Port the latest changes from master

Port them from Lua config to JSON config.
This commit is contained in:
Ashok Sidipotu 2022-09-08 04:57:23 +05:30 committed by Julian Bouzas
parent 6762de3990
commit efb0c5a635
3 changed files with 5 additions and 3 deletions

View file

@ -29,7 +29,7 @@ wireplumber.settings = {
# These properties override node defaults when running in a virtual machine.
# The rules below still override those.
monitor.vm.node.defaults = {
monitor.alsa.vm.node.defaults = {
api.alsa.period-size = 256
api.alsa.headroom = 8192
}
@ -143,6 +143,7 @@ wireplumber.settings = {
# channelmix.hilbert-taps = 0
# channelmix.disable = false
# dither.noise = 0
# dither.method = "none"
# audio.channels = 2
# audio.format = "S16LE"
# audio.rate = 44100

View file

@ -34,7 +34,8 @@ wireplumber.settings = {
# device.echo-cancel-source-name = "echo-cancel-source"
# device default volume level
# device.default-volume = 0.5
# device.default-volume = 0.064
# device.default-input-volume = 1.0
# Sets persistent device profiles that should never be changed, when
# wireplumber is running, even if a new profile with higher priority becomes

View file

@ -135,7 +135,7 @@ function createNode(parent, id, obj_type, factory, properties)
end
-- apply VM overrides
local vm_overrides = config_settings["vm.node.defaults"]
local vm_overrides = config_settings ["monitor.alsa.vm.node.defaults"]
if nonempty(Core.get_vm_type()) and type(vm_overrides) == "table" then
for k, v in pairs(vm_overrides) do
properties[k] = v