wireplumber/src/scripts/lib/stream-config.lua
George Kiagiadakis d8e461940f scripts: refactor restore-stream into node/state-stream
* Use more hooks and no custom object managers
* Use the settings manager for the config values
* Allow fully disabling the hooks when both restore-props and restore-target
  are disabled in the settings
* Change the format AND the name of the state file; use json directly
  in the values now that we can
2023-04-17 07:48:18 -04:00

17 lines
338 B
Lua

-- WirePlumber
--
-- Copyright © 2022 Collabora Ltd.
--
-- SPDX-License-Identifier: MIT
-- Device settings manager
local settings_manager = require ("settings-manager")
local defaults = {
["restore-props"] = true,
["restore-target"] = true,
["default-channel-volume"] = 1.0,
}
return settings_manager.new ("stream.", defaults)