mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
jack: enunerate Latency only for DSP ports
We don't really include the other ports in the API.
This commit is contained in:
parent
e4cee8eec2
commit
b3ee9942f6
1 changed files with 14 additions and 2 deletions
|
|
@ -3067,6 +3067,17 @@ static const char* type_to_string(jack_port_type_id_t type_id)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
static bool type_is_dsp(jack_port_type_id_t type_id)
|
||||||
|
{
|
||||||
|
switch(type_id) {
|
||||||
|
case TYPE_ID_AUDIO:
|
||||||
|
case TYPE_ID_MIDI:
|
||||||
|
case TYPE_ID_VIDEO:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static jack_uuid_t client_make_uuid(uint32_t id, bool monitor)
|
static jack_uuid_t client_make_uuid(uint32_t id, bool monitor)
|
||||||
{
|
{
|
||||||
|
|
@ -3477,8 +3488,9 @@ static void registry_event_global(void *data, uint32_t id,
|
||||||
pw_proxy_add_object_listener(o->proxy,
|
pw_proxy_add_object_listener(o->proxy,
|
||||||
&o->object_listener, &port_events, o);
|
&o->object_listener, &port_events, o);
|
||||||
|
|
||||||
pw_port_subscribe_params((struct pw_port*)o->proxy,
|
if (type_is_dsp(type_id))
|
||||||
ids, 1);
|
pw_port_subscribe_params((struct pw_port*)o->proxy,
|
||||||
|
ids, 1);
|
||||||
do_sync = true;
|
do_sync = true;
|
||||||
}
|
}
|
||||||
pthread_mutex_lock(&c->context.lock);
|
pthread_mutex_lock(&c->context.lock);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue