[LAU] Toggle Jack Transport CLI

Christopher Arndt chris at chrisarndt.de
Tue Nov 15 14:47:13 UTC 2016


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 961 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20161115/0757d573/attachment.pgp>


More information about the Linux-audio-user mailing list