1 -- Policy config file --
5 policy_config.endpoints = {
6 -- [endpoint name] = { endpoint properties }
7 ["endpoint.capture"] = {
8 ["media.class"] = "Audio/Source",
11 ["endpoint.multimedia"] = {
12 ["media.class"] = "Audio/Sink",
13 ["role"] = "Multimedia",
15 ["endpoint.speech_low"] = {
16 ["media.class"] = "Audio/Sink",
17 ["role"] = "Speech-Low",
19 ["endpoint.custom_low"] = {
20 ["media.class"] = "Audio/Sink",
21 ["role"] = "Custom-Low",
23 ["endpoint.navigation"] = {
24 ["media.class"] = "Audio/Sink",
25 ["role"] = "Navigation",
27 ["endpoint.speech_high"] = {
28 ["media.class"] = "Audio/Sink",
29 ["role"] = "Speech-High",
31 ["endpoint.custom_high"] = {
32 ["media.class"] = "Audio/Sink",
33 ["role"] = "Custom-High",
35 ["endpoint.communication"] = {
36 ["media.class"] = "Audio/Sink",
37 ["role"] = "Communication",
39 ["endpoint.emergency"] = {
40 ["media.class"] = "Audio/Sink",
41 ["role"] = "Emergency",
45 policy_config.policy = {
46 ["move"] = false, -- moves session items when metadata target.node changes
47 ["follow"] = true, -- moves session items to the default device when it has changed
49 -- Set to 'true' to disable channel splitting & merging on nodes and enable
50 -- passthrough of audio in the same format as the format of the device.
51 -- Note that this breaks JACK support; it is generally not recommended
52 ["audio.no-dsp"] = false,
54 -- how much to lower the volume of lower priority streams when ducking
55 -- note that this is a linear volume modifier (not cubic as in pulseaudio)
60 ["alias"] = { "Multimedia", "Music", "Voice", "Capture" },
62 ["action.default"] = "cork",
63 ["action.Capture"] = "mix",
64 ["media.class"] = "Audio/Source",
67 ["alias"] = { "Movie", "Music", "Game" },
69 ["action.default"] = "mix",
73 ["action.default"] = "cork",
74 ["action.Speech-Low"] = "mix",
78 ["action.default"] = "cork",
79 ["action.Custom-Low"] = "mix",
83 ["action.default"] = "duck",
84 ["action.Navigation"] = "mix",
88 ["action.default"] = "cork",
89 ["action.Speech-High"] = "mix",
93 ["action.default"] = "cork",
94 ["action.Custom-High"] = "mix",
98 ["action.default"] = "cork",
99 ["action.Communication"] = "mix",
102 ["alias"] = { "Alert" },
104 ["action.default"] = "cork",
105 ["action.Emergency"] = "mix",
110 -- Session item factories, building blocks for the session management graph
111 -- Do not disable these unless you really know what you are doing
112 load_module("si-node")
113 load_module("si-audio-adapter")
114 load_module("si-standard-link")
115 load_module("si-audio-endpoint")
117 -- API to access default nodes from scripts
118 load_module("default-nodes-api")
120 -- API to access mixer controls, needed for volume ducking
121 load_module("mixer-api")
123 -- Create endpoints statically at startup
124 load_script("static-endpoints.lua", policy_config.endpoints)
126 -- Create session items for nodes that appear in the graph
127 load_script("create-item.lua", policy_config.policy)
129 -- Link nodes to each other to make media flow in the graph
130 load_script("policy-node.lua", policy_config.policy)
132 -- Link client nodes with endpoints to make media flow in the graph
133 load_script("policy-endpoint-client.lua", policy_config.policy)
134 load_script("policy-endpoint-client-links.lua", policy_config.policy)
136 -- Link endpoints with device nodes to make media flow in the graph
137 load_script("policy-endpoint-device.lua", policy_config.policy)