[LAD] jack2 API

Paul Davis paul at linuxaudiosystems.com
Tue Mar 31 13:40:26 UTC 2015


On Tue, Mar 31, 2015 at 9:02 AM, Vaclav Mach <vaclav.mach at artisys.aero>
wrote:

> Hi,
> I wrote some code (in C++) using JACK1 API. It was quite easy to do that
> with a plenty of example files.
> Recently, I tried to utilize C++ libraries provided in JACK2 because I
> don't like mixing OO code with C api. There are a lot of C++ classes in
> JACK2 but I'm not able to link/include them.
>
> For example: instead of #include <jack/jack.h> I'm trying to #include
> "jack2/JackServer.h".
>
> There are no example files.
>
> What am I doing wrong? Or is it a bad way of using JACK2?
>

JACK1 and JACK2 are two different implementations of the same API. The API
is defined in C. Your code should work with ZERO changes regardless of the
version of JACK used at run time. If you want a C++ API wrapper for JACK,
there is at least floating around online.

You've entirely misunderstood what JACK2 is, it appears.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20150331/d3149612/attachment.html>


More information about the Linux-audio-dev mailing list