Hi,

 

>I am trying to use the library from C#,....

I guess you use the fluidsynth shared library, and you have a way to bind your 
C# code to C fluidsynth API.

In this case you could write and build a new C shared library that contains the 
C functions you need.

For example, let the following new C shared library source for your need:

 

On Windows,

1) make a new project: shared C library.

2) put the the following code in your new project

 

/*

 *   The function free memory using free().

*/

__declspec(dllexport) fluid_free( void * p)

{

    free(p)

}

 

3) build your new shared C project.

4) Than from your C# project, (4.1) call fluid_free() (the same way you call 
any fluidsynth API), and then (4.2) bind your new shared library (the same way 
you bound fluidsynth shared library).

jjc

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

Reply via email to