session: make a jack device

Add a jack device and activate it when we release the device (for JACK
presumably). We need to work around some issues, jack does not allow
us to connect yet when it asks to release the device so we need to
wait a little and then connect.
This commit is contained in:
Wim Taymans 2019-10-21 16:39:08 +02:00
parent b3d72fb82d
commit 34a1a988ba
3 changed files with 88 additions and 4 deletions

View file

@ -95,6 +95,9 @@ struct impl {
DBusConnection *conn;
struct pw_proxy *midi_bridge;
struct spa_source *jack_timeout;
struct pw_proxy *jack_device;
};
struct object {
@ -1245,6 +1248,7 @@ static void start_services(struct impl *impl)
bluez5_start_monitor(impl, &impl->bluez5_monitor);
alsa_start_monitor(impl, &impl->alsa_monitor);
alsa_start_midi_bridge(impl);
alsa_start_jack_device(impl);
v4l2_start_monitor(impl, &impl->v4l2_monitor);
}