mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-06 02:28:02 +02:00
alsa-midi: add an option to disable longname/card number display
Signed-off-by: Dmitry Sharshakov <d3dx12.xx@gmail.com>
This commit is contained in:
parent
7a1b48b741
commit
b86847ec75
2 changed files with 6 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ alsa_monitor.properties = {
|
|||
-- Enables monitoring of alsa MIDI devices
|
||||
["alsa.midi.monitoring"] = true,
|
||||
|
||||
-- Removes longname from MIDI port names
|
||||
--["alsa.disable-longname"] = true,
|
||||
|
||||
-- These properties override node defaults when running in a virtual machine.
|
||||
-- The rules below still override those.
|
||||
["vm.node.defaults"] = {
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ function CreateMidiNode ()
|
|||
local props = {}
|
||||
props["factory.name"] = "api.alsa.seq.bridge"
|
||||
props["node.name"] = "Midi-Bridge"
|
||||
if config.properties["alsa.disable-longname"] then
|
||||
props["api.alsa.disable-longname"] = true
|
||||
end
|
||||
|
||||
-- create the midi node
|
||||
local node = Node("spa-node-factory", props)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue