jack: improve jack-sink and jack-source

Add more properties to sink/source to make them always process and
have the right priorities. Make sure the sink has higher priority than
the source so that we can pull in samples through the graph.

Only trigger the graph cycle when driving the graph.

Make sure to return something from process to signal that the graph can
continue processing.
This commit is contained in:
Wim Taymans 2023-04-25 20:17:11 +02:00
parent b9381a9da6
commit 815501cc1f
4 changed files with 42 additions and 14 deletions

View file

@ -393,6 +393,7 @@ impl_init(const struct spa_handle_factory *factory,
this = (struct impl *) handle;
this->log = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);
this->client.log = this->log;
this->device.iface = SPA_INTERFACE_INIT(
SPA_TYPE_INTERFACE_Device,