Re: [Jack-Devel] jack-transport state change notification
On Tue, Aug 23, 2011 at 7:31 AM, Orm Finnendahl
<[hidden]> wrote:
> Hi,
>
> I'm currently reworking the jacktransport plugin for puredata to
> accomodate the changes in the api in the last years (the old plugin is
> from 2005). The mechanism seems to be clear, but I'd like to confirm
> that I'm doing it the right way:
>
> In order to intercept changes in the transport state I assume the
> client has to poll jack (with jack_transport_query) or is there a
> mechanism for installing a callback enabling clients to get informed
> by jack that transport state has changed (e.g. if another application
> stops jack transport)?
hi orm!
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.
1314103582.908_0.ltw:2,a <CAFa_cK=cc-inytKw=gFZxVNCeYm16BYeDwMo256Q16DYbSRGtg at mail dot gmail dot com>