Re: Toggle Jack Transport CLI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: OpenPGP digital signature

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

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux