Re: [LAD] jack for windows compared to linux

From: Nedko Arnaudov <nedko@email-addr-hidden>
Date: Mon Jun 01 2009 - 17:05:16 EEST

Stéphane Letz <letz@email-addr-hidden> writes:

> Le 1 juin 09 à 15:23, Nedko Arnaudov a écrit :
>
>> Stéphane Letz <letz@email-addr-hidden> writes:
>>
>>>> What do you think Stephane, can native jack clients on windows
>>>> achieve
>>>> performance which is almost at par as native ASIO apps ?
>>>> If we release LinuxSampler with jack support we have probably to
>>>> ship
>>>> libjack (otherwise the app does not start) with the sampler and it
>>>> could be that it conflicts with an
>>>> already installed jack.
>>>
>>> Well I also recently had this kind of "weak" link requirement for
>>> libjack on Linux. I think OSX supports some kind of weak linking with
>>> any compiled framework, but the situation is less clear on Windows on
>>> Linux. A possible solution would be to provide a special
>>> "libweakjack" library with the appropriate bahaviour for that.
>>
>> On Windows, you can use LoadLibrary() API function to load
>> libjack.dll.
>> On Linux, dlopen() can be used to load libjack.so.
>>
>
> Yes, but with what library do you link your code? AFACS the point is
> that if libjack.so is missing, then the application does not start...
> if no weak link strategy is used.

You dont link at all. You have to explicitly load the libarary and
resolve functions in it. I.e. like filling method pointers in the
virtual table of object of abstract class.

-- 
Nedko Arnaudov <GnuPG KeyID: DE1716B0>

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev

Received on Mon Jun 1 20:15:02 2009

This archive was generated by hypermail 2.1.8 : Mon Jun 01 2009 - 20:15:02 EEST