mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
jack: add jack.show-midi option
Add an option to show of hide MIDI ports, true by default. Add jack.show-midi to config
This commit is contained in:
parent
a643ac7d7a
commit
e75fc459b3
2 changed files with 6 additions and 1 deletions
|
|
@ -374,6 +374,7 @@ struct client {
|
||||||
unsigned int warn_mlock:1;
|
unsigned int warn_mlock:1;
|
||||||
unsigned int timeowner_conditional:1;
|
unsigned int timeowner_conditional:1;
|
||||||
unsigned int show_monitor:1;
|
unsigned int show_monitor:1;
|
||||||
|
unsigned int show_midi:1;
|
||||||
unsigned int merge_monitor:1;
|
unsigned int merge_monitor:1;
|
||||||
unsigned int short_name:1;
|
unsigned int short_name:1;
|
||||||
unsigned int filter_name:1;
|
unsigned int filter_name:1;
|
||||||
|
|
@ -2956,6 +2957,8 @@ static void registry_event_global(void *data, uint32_t id,
|
||||||
}
|
}
|
||||||
if (is_monitor && !c->show_monitor)
|
if (is_monitor && !c->show_monitor)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
if (type_id == TYPE_ID_MIDI && !c->show_midi)
|
||||||
|
goto exit;
|
||||||
|
|
||||||
o = NULL;
|
o = NULL;
|
||||||
if (node_id == c->node_id) {
|
if (node_id == c->node_id) {
|
||||||
|
|
@ -3466,6 +3469,7 @@ jack_client_t * jack_client_open (const char *client_name,
|
||||||
client->info.change_mask = 0;
|
client->info.change_mask = 0;
|
||||||
|
|
||||||
client->show_monitor = pw_properties_get_bool(client->props, "jack.show-monitor", true);
|
client->show_monitor = pw_properties_get_bool(client->props, "jack.show-monitor", true);
|
||||||
|
client->show_midi = pw_properties_get_bool(client->props, "jack.show-midi", true);
|
||||||
client->merge_monitor = pw_properties_get_bool(client->props, "jack.merge-monitor", true);
|
client->merge_monitor = pw_properties_get_bool(client->props, "jack.merge-monitor", true);
|
||||||
client->short_name = pw_properties_get_bool(client->props, "jack.short-name", false);
|
client->short_name = pw_properties_get_bool(client->props, "jack.short-name", false);
|
||||||
client->filter_name = pw_properties_get_bool(client->props, "jack.filter-name", false);
|
client->filter_name = pw_properties_get_bool(client->props, "jack.filter-name", false);
|
||||||
|
|
@ -5223,7 +5227,7 @@ int jack_connect (jack_client_t *client,
|
||||||
|
|
||||||
pw_proxy_destroy(proxy);
|
pw_proxy_destroy(proxy);
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
pw_thread_loop_unlock(c->context.loop);
|
pw_thread_loop_unlock(c->context.loop);
|
||||||
|
|
||||||
return -res;
|
return -res;
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ jack.properties = {
|
||||||
#node.force-quantum = 0
|
#node.force-quantum = 0
|
||||||
#jack.show-monitor = true
|
#jack.show-monitor = true
|
||||||
#jack.merge-monitor = true
|
#jack.merge-monitor = true
|
||||||
|
#jack.show-midi = true
|
||||||
#jack.short-name = false
|
#jack.short-name = false
|
||||||
#jack.filter-name = false
|
#jack.filter-name = false
|
||||||
#jack.filter-char = " "
|
#jack.filter-char = " "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue