mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-30 18:30:06 +01:00
monitor-alsa: receive script configuration from config.lua
This commit is contained in:
parent
c00a706998
commit
88f59f07cb
2 changed files with 10 additions and 9 deletions
|
|
@ -30,8 +30,8 @@ function load_script(s, a)
|
|||
end
|
||||
end
|
||||
|
||||
function load_monitor(s)
|
||||
load_script("monitors/monitor-" .. s .. ".lua")
|
||||
function load_monitor(s, a)
|
||||
load_script("monitors/monitor-" .. s .. ".lua", a)
|
||||
end
|
||||
|
||||
-- Session item factories, building blocks for the session management graph
|
||||
|
|
@ -80,7 +80,12 @@ function enable_audio()
|
|||
load_module("reserve-device")
|
||||
|
||||
-- ALSA device management via udev
|
||||
load_monitor("alsa")
|
||||
load_monitor("alsa", {
|
||||
use_acp = true,
|
||||
use_device_reservation = true,
|
||||
enable_midi = true,
|
||||
enable_jack_client = false,
|
||||
})
|
||||
end
|
||||
|
||||
function enable_bluetooth()
|
||||
|
|
|
|||
|
|
@ -5,12 +5,8 @@
|
|||
--
|
||||
-- SPDX-License-Identifier: MIT
|
||||
|
||||
Config = {
|
||||
use_acp = true,
|
||||
use_device_reservation = true,
|
||||
enable_midi = true,
|
||||
enable_jack_client = false,
|
||||
}
|
||||
-- Receive script arguments from config.lua
|
||||
local Config = ...
|
||||
|
||||
if Config.enable_midi then
|
||||
midi_bridge = Node("spa-node-factory", {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue