Re: [Jack-Devel] jack-transport state change notification

PrevNext  Index
DateThu, 25 Aug 2011 10:22:31 +0200
From Orm Finnendahl <[hidden] at inm dot mh-freiburg dot de>
ToPaul Davis <[hidden] at linuxaudiosystems dot com>
Cc[hidden] at lists dot jackaudio dot org
In-Reply-ToPaul Davis Re: [Jack-Devel] jack-transport state change notification
Follow-UpPaul Davis Re: [Jack-Devel] jack-transport state change notification
Am Tuesday, den 23. August 2011 um 08:45:56 Uhr (-0400) schrieb Paul Davis:
> 
> transport state changes are block-aligned to process callbacks. so you
> just check in a process callback for the current state. it is not
> possible to change state in the middle of a process callback.

I set the process callback in the plugin calling
jack_set_process_callback, but the callback never gets called. I guess
that's because the plugin doesn't process any data.

The plugin is connected to jack with jack_client_open and afterwards
activated with jack_activate. As the plugin isn't supposed to process
any audio or midi (it's just for setting and reading transport state
and position) I'm not sure what I should do to make jack invoke the
process callback.

As of now I just resorted to do polling myself, which works and
probably is precise enough for my needs, but I'd like to do it right
if there is a canonical way.

--
Orm
PrevNext  Index

1314266076.17164_0.ltw:2,a <20110825082230.GA17884 at varese>