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:
Dmitry Sharshakov 2022-09-13 11:37:40 +03:00 committed by George Kiagiadakis
parent 7a1b48b741
commit b86847ec75
2 changed files with 6 additions and 0 deletions

View file

@ -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"] = {

View file

@ -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)