3 device_defaults.properties = {
4 -- store preferences to the file system and restore them at startup;
5 -- when set to false, default nodes and routes are selected based on
6 -- their priorities and any runtime changes do not persist after restart
7 ["use-persistent-storage"] = false,
10 function device_defaults.enable()
11 -- Selects appropriate default nodes and enables saving and restoring them
12 load_module("default-nodes", device_defaults.properties)
14 -- Selects appropriate default routes ("ports" in pulseaudio terminology)
15 -- and enables saving and restoring them together with
16 -- their properties (per-route/port volume levels, channel maps, etc)
17 load_script("policy-device-routes.lua", device_defaults.properties)
19 if device_defaults.properties["use-persistent-storage"] then
20 -- Enables functionality to save and restore default device profiles
21 load_module("default-profile")
23 -- Save and restore stream-specific properties
24 load_script("restore-stream.lua")