Le 16 avr. 2011 à 10:27, Christian Schoenebeck a écrit :

> On Friday 15 April 2011 18:12:28 Graham Goode wrote:
>> I've been involved with testing the 32/64 bit version of Jack for
>> Windows (1.9.8), which now has full Jack Audio and Jack Midi support.
>> So, given that milestone for Windows based audio users, I wanted to
>> propose that LinuxSampler also support Jack in Windows. As the Jack
>> API is the same in Windows and Linux, the biggest job would be
>> formating the LinuxSampler Jack driver code so that it would compile
>> in Windows.
> 
> A little bit more work would be needed. At the moment all MIDI / audio driver 
> dependent code is statically linked into liblinuxsampler. If we would simply 
> compile LinuxSampler with JACK support for Windows, then JACK actually also 
> must to be installed (and a compatible version with which LinuxSampler was 
> compiled against). Otherwise the whole sampler would not start at all, with 
> some error message like "could not find libjack.dll".
> 
> So to solve this problem cleanly, we would need to modify the driver concept 
> a 
> bit, so that the audio / MIDI driver dependent "device" classes in the 
> LinuxSampler code base are compiled as separate, individual DLLs, which are 
> tried to be loaded dynamically on startup by liblinuxsampler. That is, some 
> directory where LinuxSampler looks for DLLs, and tries to load them. Similar 
> as we are already doing it for the instrument editor plugins. And if some 
> DLL, 
> like the JACK support DLL could not be loaded (e.g. becuase JACK is not 
> installed on the system), it would simply be skipped and the sampler would 
> still start anyway.
> 
> CU
> Christian

You can use "weak linking" to solve this problem. On Windows the simplest is to 
compile the following file:

http://trac.jackaudio.org/browser/jack2/trunk/jackmp/common/JackWeakAPI.cpp

instead of linking with libjack.lib

Stéphane 
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to