FluidSynth on Unity (.dll issues)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

FluidSynth on Unity (.dll issues)

Jon Y
Hi,

I am building a Unity app and want to use fluidsynth to play .sf2 audio (windows 10 64bit).

For a c# binding I use nfluidsynth.

I add libfluidsynth-2.dll to the plugins folder in Unity - however I get the following error:

"Failed to load libfluidsyth-2.dll because one or more of its dependencies could not be loaded"

Do I need to add additional .dll files to my Unity project?

I wrote on the nfluidsynth github with some more details.

Thanks!

_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: FluidSynth on Unity (.dll issues)

Ceresa Jean-Jacques

Hi,

1)For loading .sf2 soundfont files,  libfluidsynth-2.dll requires only libglib-2.0-0.dll, libgthread-2.0-0.dll. That's it.

2)If you intend to use libfluidsynth-2.dll for rendering MIDI file(s) to any audio file(s) format other then raw (i.e WAV,FLAC...), additional libsndfile-1.dll will be required.
   Of course in case 2, this libfluidsynth-2.dll will have been compiled with libsndfile option (using CMake).

 

>"Failed to load libfluidsyth-2.dll because one or more of its dependencies could not be loaded"

This is a vague message. Lauching fluidsynth.exe console application (calling libfluidsynth-2.dll) should display the exact name of missing .dll(s) (if any).

jjc.

> Message du 15/07/20 14:56

> De : "Jon Y" <[hidden email]>
> A : "[hidden email]" <[hidden email]>
> Copie à :
> Objet : [fluid-dev] FluidSynth on Unity (.dll issues)
>
>
Hi,
>
> I am building a Unity app and want to use fluidsynth to play .sf2 audio (windows 10 64bit).
>

> For a c# binding I use nfluidsynth.

>
I add libfluidsynth-2.dll to the plugins folder in Unity - however I get the following error:
>
> "Failed to load libfluidsyth-2.dll because one or more of its dependencies could not be loaded"
>
>
Do I need to add additional .dll files to my Unity project?
>

> I wrote on the nfluidsynth github with some more details.
>

>
Thanks!
>


_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev


_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: FluidSynth on Unity (.dll issues)

fluid-dev mailing list
Copying only libfluidsynth-2.dll to Unity's plugin folder is not enough. All of fluidsynth's dependencies must be present in this directory as well (or alternatively in any of the directories specified by %PATH%). You can use the dependency walker to find out which dependency dlls of libfludsynth are missing.

Tom



_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev
Reply | Threaded
Open this post in threaded view
|

Re: FluidSynth on Unity (.dll issues)

Jon Y
Hi Tom,

Using a dependency walker helped me find the necessary dependencies.

Thank you

From: Tom M. <[hidden email]>
Sent: July 15, 2020 9:18 AM
To: Jon Y <[hidden email]>; FluidSynth mailing list <[hidden email]>
Subject: Re: [fluid-dev] FluidSynth on Unity (.dll issues)
 
Copying only libfluidsynth-2.dll to Unity's plugin folder is not enough. All of fluidsynth's dependencies must be present in this directory as well (or alternatively in any of the directories specified by %PATH%). You can use the dependency walker to find out which dependency dlls of libfludsynth are missing.

Tom



_______________________________________________
fluid-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/fluid-dev