Grigor has added a soundfont reading library, libsf2, in his work with 
the new engines.

I think it is a problem that libsf2 is copying the RIFF code from 
libgig. You get two different RIFF.h files, and the RIFF functions are 
duplicated in two different shared libraries, using the same symbol names.

The ambitious solution is to extract the RIFF functions to a separate 
library, and let libsf2 and libgig depend on that. An alternative is to 
make libsf2 dependent on libgig. The third option is to simply put the 
sf2 functions into libgig. I vote for the last one - the sf2 
functionality is too small in my opinion to motivate a split of libgig.

Another question is what to do with the redeclaration warnings you get 
if you include both SF.h and gig.h, like this one:

warning: "CHUNK_ID_SMPL" redefined

First suggestion was to rename the ones in SF.h with a SF_ prefix. I 
think that is a bit ugly, as it really is the same constant after all. I 
would instead vote for moving the common IDs to RIFF.h. But this, as 
Grigor told me, is not very clean as you add format specific info the 
general riff class. So, Grigor and I couldn't decide. Anyone have an 
opinion on this (not very important) matter?

/Andreas

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to