I guess that you have libfluidsynth.so installed somewhere in /usr/lib/ and this one was compiled without alsa support. If this is the case, when starting ./fluidsynth_simple it doesnt find libfluidsynth.so in the current working directory and uses the one in /usr/lib/. Either remove that installation or set LD_LIBRARY_PATH like:
export LD_LIBRARY_PATH=/path/to/custom/libfluidsynth.so:$LD_LIBRARY_PATH Or build fluidsynth_simple with a statically linked libfluidsynth.a of which you know it was compiled with alsa support. Tom 2017-09-08 15:25 GMT+02:00 mike <wa...@telkomsa.net>: > > Hi All, I successfully used 'cmake' and 'make' to produce the fluidsynth > executable. Running > > ./fluidsynth -a alsa FluidR3_GM.sf2 LUTE.mid > > played the MIDI file perfectly. > > I then compiled the example fluidsynth_simple.c, and linked it against > libfluidsynth.so > The only change I made to fluidsynth_simple.c was to add the line > selecting ALSA before selecting the audio driver. > > fluid_settings_setstr(settings, "audio.driver", "alsa"); > adriver = new_fluid_audio_driver(settings, synth); > > Ran it:- ./fluidsynth_simple FluidR3_GM.sf2 > > This is the result: > > fluidsynth: warning: Failed to pin the sample data to RAM; swapping is > possible. > fluidsynth: error: Couldn't find the requested audio driver alsa. Valid > drivers are: file, oss. > Failed to create the audio driver. > > Any help in using ALSA with the library would be appreciated. > > Regards, Mike > > Platform: Ubuntu 16.04.3 LTS, x86_64 > fluidsynth: 1.1.7 > > _______________________________________________ > fluid-dev mailing list > fluid-dev@nongnu.org > https://lists.nongnu.org/mailman/listinfo/fluid-dev >
_______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev