Re: [Jack-Devel] JACK1 / JACK2: Application UI behaves differently

PrevNext  Index
DateWed, 01 Feb 2012 19:13:38 +0000
From [hidden] at gmail dot com <[hidden] at gmail dot com
ToStéphane Letz <[hidden] at grame dot fr>, Harry van Haaren <[hidden] at gmail dot com>
CcJACK <[hidden] at lists dot jackaudio dot org>
In-Reply-To[hidden] at gmail dot com Re: [Jack-Devel] JACK1 / JACK2: Application UI behaves differently
Follow-UpStéphane Letz Re: [Jack-Devel] JACK1 / JACK2: Application UI behaves differently
Issue fixed: Apologies Stephane for wasting your time.

JACK1 will repeatedly call process when you return "true" from the process  
function.
JACK2 will call process() *once*, and if you return "true" not call you  
again.

This was stopping my RT thread from inserting the relevant components into  
engine,
and hence not updating the GUI, because the actions weren't being achieved.

Docs contains the following on returning from process():
" Returns:
zero on success, non-zero on error"

Perhaps a note that JACK1 will continue to call you, while JACK2 will not  
would be good?
-Harry

On , [hidden] wrote:
> On , Stéphane Letz [hidden]> wrote:
> > 1) Where is the code?
> git clone [hidden]:harryhaaren/Luppp.git

> > 2) See http://trac.jackaudio.org/wiki/WalkThrough/User/ClientThreads
> Thanks, read that there.

> I've also just noticed that jack_activate() is being called in the  
> constructor of my JackClient class, and it doesn't call process() with  
> JACK2.

> Its the main thread that sets up the jackClient class instance, and hence  
> also calls jack_activate(). See:
> https://github.com/harryhaaren/Luppp/blob/master/src/main.cpp#L48
> https://github.com/harryhaaren/Luppp/blob/master/src/jackclient.cpp#L146

> -Harry
PrevNext  Index

1328123626.11411_0.ltw:2,a <e0cb4e70013f7efc4f04b7ebe029 at google dot com>