Le 13/01/2016 18:36, Element Green a écrit :
Having said all that, it would be nice to have the ability to build a possibly stripped down version of FluidSynth which would utilize a user defined compatibility layer. .......Internally the FluidSynth source code still has it's own compatibility layer and from what I can see does not reference glib directly. The majority of this interface is defined in utils/fluid_sys.c and utils/fluid_sys.h. Defining platform specific versions of these files would provide what I think you are seeking. A lot of those primitives are fairly simple really, and could probably be easily lifted from glib sources for use on a specific platform.

At any rate, seems like a good idea.  It would take a little work though.
Element

This is what i intend to do for Windows plateform (to get a small size of code for specifics applications). It is in my "todo" list.

To replace glib we need to do the following steps:
1) Replace the reference to glib.h in alls files using glib.h.
In others words we need to replace macros (defined in glib.h and gxxxxx.h) by others macros defined in
  - fluidsynth_priv.h (yes, this file is glib dependent too !)
  - fluid_sys.h
  - fluid_sys.c

2) Add the necessary code (functions )in fluid_sys.

regards.

_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev

Reply via email to