On Wed, 27 May 2009 18:35:08 -0500
Jorge Cardona <
jorgeecardona@...> wrote:
> I'm trying to understand how works jack, but i'm stuck on the way that
> the callbacks at the clients are called from the server. Is there a
> signaling system, like the posix signals? i was reading the code, but
> i can't find where exactly is stored the client process function
> pointer, and when is called.
First off, have a good read at :
http://jackaudio.org/files/docs/html/index.htmljackd's clever design makes it *really easy*. Once you've done the
necessary intialisation, write your own audio processing function using
this prototype :
http://jackaudio.org/files/docs/html/types_8h.html#4923142208a8e7dacf00ca7a10681d2band register it with jack_set_process_callback()
(see :
http://jackaudio.org/files/docs/html/group__ClientCallbacks.html#g62351a5803421b6c21b9ffb9124801ef)
>From then on, the automagic of jack will call this function periodically
(paced by the backend driver you've chosen and the runtime parameters
given to the jackd daemon) without any further action from your own
code.
Please have a look at the example client code generously provided with
the source code of jackd and I'm sure you'll grasp the idea.
Cheers ! jackd is a gem.
--
David
_______________________________________________
Jack-Devel mailing list
Jack-Devel@...
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org