Hello, Swami (http://swami.resonance.org) does its own instrument handling using the FluidSynth SoundFont loader API. You could have a look at src/plugins/fluidsynth.c to get an idea of how this works, although it might be difficult to sort out the parts you want versus the rest of the code. All the sfloader_* functions are related to it though.
Path to fluidsynth.c in Swami subversion: http://swami.resonance.org/trac/browser/trunk/swami/src/plugins/fluidsynth.c Best regards, Josh On Sun, 2008-11-02 at 22:05 +0100, thomasg wrote: > Hi, > > I'm currently using a fluidsynth instance in a application (using the > midi api) and load the soundfront directly from a sf2-file (using > fluid_synth_sfload). > Now I want to change that and load a file directly out of the ram. I > have soundfonts in a kind of db and get a void-pointer (+ size) to the > data of every file in the db. > Is there a possibility to use the soundfonts like I did until now and > only change the way of loading? > The ramsfont api didn't look appropriate. > > Thanks in advance, > > thomasg > _______________________________________________ > fluid-dev mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/fluid-dev _______________________________________________ fluid-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/fluid-dev
