mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-09 05:08:04 +02:00
config: split configuration for endpoints support in config.lua.d
This commit is contained in:
parent
115c9c3e4f
commit
be78fbbc7d
3 changed files with 32 additions and 21 deletions
|
|
@ -38,17 +38,6 @@ function load_access(s, a)
|
|||
load_script("access/access-" .. s .. ".lua", a)
|
||||
end
|
||||
|
||||
-- Session item factories, building blocks for the session management graph
|
||||
-- Do not disable these unless you really know what you are doing
|
||||
load_module("si-adapter")
|
||||
load_module("si-audio-softdsp-endpoint")
|
||||
load_module("si-bluez5-endpoint")
|
||||
load_module("si-convert")
|
||||
load_module("si-fake-stream")
|
||||
load_module("si-monitor-endpoint")
|
||||
load_module("si-simple-node-endpoint")
|
||||
load_module("si-standard-link")
|
||||
|
||||
-- Additional PipeWire modules can be loaded in WirePlumber like this.
|
||||
-- libpipewire already loads all the modules that we normally need, though.
|
||||
-- module-spa-node-factory may be needed if you want to use a monitor with
|
||||
|
|
@ -85,14 +74,4 @@ function enable_audio()
|
|||
load_module("metadata")
|
||||
end
|
||||
|
||||
function enable_endpoints()
|
||||
load_script("static-sessions.lua", {
|
||||
["audio"] = {},
|
||||
["video"] = {},
|
||||
})
|
||||
load_script("create-endpoint.lua")
|
||||
load_script("policy-endpoint.lua")
|
||||
end
|
||||
|
||||
enable_access()
|
||||
enable_endpoints()
|
||||
|
|
|
|||
31
src/config/config.lua.d/10-endpoint-support.lua
Normal file
31
src/config/config.lua.d/10-endpoint-support.lua
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
-- Endpoint support config file --
|
||||
|
||||
endpoint_support = {}
|
||||
|
||||
endpoint_support.sessions = {
|
||||
-- [session name] = { session properties }
|
||||
["audio"] = {},
|
||||
["video"] = {},
|
||||
}
|
||||
|
||||
function endpoint_support.enable()
|
||||
-- Session item factories, building blocks for the session management graph
|
||||
-- Do not disable these unless you really know what you are doing
|
||||
load_module("si-adapter")
|
||||
load_module("si-audio-softdsp-endpoint")
|
||||
load_module("si-bluez5-endpoint")
|
||||
load_module("si-convert")
|
||||
load_module("si-fake-stream")
|
||||
load_module("si-monitor-endpoint")
|
||||
load_module("si-simple-node-endpoint")
|
||||
load_module("si-standard-link")
|
||||
|
||||
-- Create sessions statically at startup
|
||||
load_script("static-sessions.lua", endpoint_support.sessions)
|
||||
|
||||
-- Create endpoints for nodes that appear in the graph
|
||||
load_script("create-endpoint.lua")
|
||||
|
||||
-- Link endpoints to each other to make media flow in the graph
|
||||
load_script("policy-endpoint.lua")
|
||||
end
|
||||
1
src/config/config.lua.d/90-enable-endpoints.lua
Normal file
1
src/config/config.lua.d/90-enable-endpoints.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
endpoint_support.enable()
|
||||
Loading…
Add table
Reference in a new issue