Re: [LAU] Toggle Jack Transport CLI

From: Christopher Arndt <chris@email-addr-hidden>
Date: Tue Nov 15 2016 - 16:47:13 EET

Am 15.11.2016 um 15:19 schrieb Yassin Philip:
> But found no way to detect the transport status ; Is there a way to know
> it?

AFAICS, even libjack only provides functions to start/stop the transport
or get/set the current frame.

Unfortunately, the Jack2 DBUS interface does not seem to export access
to this functionality at all:

https://github.com/jackaudio/jack2/blob/364159f8212393442670b9c3b68b75aa39d98975/dbus/controller_iface_transport.c

You could write your own minimal JACK client to query the transport
frame and check again a few milliseconds later to determine whether the
transport is running.

Using the jacklib.py module included in Cadence (and which I borrowed
for jack-matchmaker[1]), this is very easy to do in Python:

https://gist.github.com/SpotlightKid/420b975c296b08bfc5ecdcbe82cedba7

Chris

[1]
https://github.com/SpotlightKid/jack-matchmaker/blob/master/jackmatchmaker/jacklib.py

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user

Received on Tue Nov 15 20:15:02 2016

This archive was generated by hypermail 2.1.8 : Tue Nov 15 2016 - 20:15:02 EET