[Qt-interest] Jack Qt integration

Brad Howes howes at ll.mit.edu
Thu Apr 2 20:48:50 CEST 2009


On Apr 2, 2009, at 2:21 PM, Andrea Franceschini wrote:

> Hi all,
> basically I need to integrate Jack (Jack Audio Connection Kit) in my
> Qt application. Since Jack is written in C, it seems that there are
> two ways:
> 1. using callbacks: I'm not expert in this field, is it possible to
> reference a non-static member function of an instance and use it as a
> callback function? I guess no.

Most callback systems offer you to pass in a 'context' pointer value.  
You could then pass in a C++ object for the context, a C++ class  
method for a callback, and in the callback, do a cast on the context  
pointer to the real pointer type and do your stuff. I have not used  
Jack, so I'm not sure what support there is for this type of  
integration. It works like a charm for Motif and Apple's Zeroconf  
(Bonjour) reference implementation.

Brad

-- 
Brad Howes
Group 42
MIT Lincoln Laboratory • 244 Wood St. • Lexington, MA 02173
Phone: 781.981.5292 • Fax: 781.981.3495 • Secretary: 781.981.7420








More information about the Qt-interest-old mailing list