mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 08:58:01 +02:00
monitors: use new Settings.get_all() API
This commit is contained in:
parent
1a98155599
commit
5e6262718a
2 changed files with 2 additions and 40 deletions
|
|
@ -5,22 +5,7 @@
|
|||
--
|
||||
-- SPDX-License-Identifier: MIT
|
||||
|
||||
local config_settings = {
|
||||
["alsa.jack-device"] =
|
||||
Settings.get_boolean ("alsa_monitor.alsa.jack-device"),
|
||||
["alsa.reserve"] =
|
||||
Settings.get_boolean ("alsa_monitor.alsa.reserve"),
|
||||
["alsa.reserve.priority"] =
|
||||
Settings.get_int ("alsa_monitor.alsa.reserve.priority"),
|
||||
["alsa.reserve.application-name"] =
|
||||
Settings.get_string ("alsa_monitor.alsa.reserve.application-name"),
|
||||
["alsa.midi"] =
|
||||
Settings.get_boolean ("alsa_monitor.alsa.midi"),
|
||||
["alsa.midi.monitoring"] =
|
||||
Settings.get_boolean ("alsa_monitor.alsa.midi.monitoring"),
|
||||
["vm.node.defaults"] =
|
||||
Settings.get_string ("alsa_monitor.vm.node.defaults"),
|
||||
}
|
||||
local config_settings = Settings.get_all ("alsa_monitor.*"):parse ()
|
||||
|
||||
-- unique device/node name tables
|
||||
device_names_table = nil
|
||||
|
|
|
|||
|
|
@ -7,30 +7,7 @@
|
|||
|
||||
local COMBINE_OFFSET = 64
|
||||
|
||||
local config_settings = {
|
||||
["bluez5.enable-sbc-xq"] =
|
||||
Settings.get_boolean ("bluez5.enable-sbc-xq"),
|
||||
["bluez5.enable-msbc"] =
|
||||
Settings.get_boolean ("bluez5.enable-msbc"),
|
||||
["bluez5.enable-hw-volume"] =
|
||||
Settings.get_boolean ("bluez5.enable-hw-volume"),
|
||||
["bluez5.headset-roles"] =
|
||||
Settings.get_string ("bluez5.headset-roles"),
|
||||
["bluez5.codecs"] =
|
||||
Settings.get_string ("bluez5.codecs"),
|
||||
["bluez5.hfphsp-backend"] =
|
||||
Settings.get_string ("bluez5.hfphsp-backend"),
|
||||
["bluez5.hfphsp-backend-native-modem"] =
|
||||
Settings.get_string ("bluez5.hfphsp-backend-native-modem"),
|
||||
["bluez5.hw-offload-sco"] =
|
||||
Settings.get_boolean ("bluez5.hw-offload-sco"),
|
||||
["bluez5.default.rate"] =
|
||||
Settings.get_int ("bluez5.default.rate"),
|
||||
["bluez5.default.channels"] =
|
||||
Settings.get_int ("bluez5.default.channels"),
|
||||
["bluez5.dummy-avrcp-player"] =
|
||||
Settings.get_boolean ("bluez5.dummy-avrcp-player"),
|
||||
}
|
||||
local config_settings = Settings.get_all ("bluez5.*"):parse ()
|
||||
|
||||
devices_om = ObjectManager {
|
||||
Interest {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue