JACK: implement jack_recompute_total_latencies()

Still acts a little weird in Ardour sometimes as if ardour is not
getting the updates in time.

See #1388
This commit is contained in:
Wim Taymans 2021-07-05 16:06:34 +02:00
parent 4abcfcdfb9
commit 831fb9ea01

View file

@ -4747,10 +4747,24 @@ void jack_port_set_latency_range (jack_port_t *port, jack_latency_callback_mode_
NULL, 0, false, p);
}
static int
do_recompute_latencies(struct spa_loop *loop,
bool async, uint32_t seq, const void *data, size_t size, void *user_data)
{
struct client *c = user_data;
pw_log_debug("start");
do_callback(c, latency_callback, JackCaptureLatency, c->latency_arg);
do_callback(c, latency_callback, JackPlaybackLatency, c->latency_arg);
pw_log_debug("stop");
return 0;
}
SPA_EXPORT
int jack_recompute_total_latencies (jack_client_t *client)
{
pw_log_warn(NAME" %p: not implemented", client);
struct client *c = (struct client *) client;
pw_loop_invoke(c->context.l, do_recompute_latencies, 0,
NULL, 0, false, c);
return 0;
}