Check the ramsfont.h include file. It allows for treating raw audio samples as sound fonts, and thus allowing to apply all the fluidsynth note playing, effects, , sequencer, etc.. in realtime. You have to load the audio file yourself though and add the samples to the ramsfont by code. Hope this helps Antoine
> Le 10 juil. 2018 à 04:17, Ceresa Jean-Jacques <jean-jacques.cer...@orange.fr> > a écrit : > > Hello > > > But once in a while I want to add a single audio file to play, like a movie > > quote (for example) or a simple one-shot sound that does not warrant > > building a sound font. > > > > If the question is "does Fluidsynth synthesizer are able to play a sound > without any soundfont file", the answer is "no". > > Fluidsynth being a SF2 synthesizer plays sound samples coming from SF2 > soundfont. If the sample is defined to be played as a one shot (not lopped), > Fluidsynth will play it "one shot". > > > With a soundfont editor you can add a sample coming from a WAV file and add a > new preset to play this sample. Doing this seems simpler that doing the job > in an other > > specific audio player. > > > Fluidsynth does't play samples described by SFZs format. > > Regards > > jjc > > > Message du 10/07/18 02:42 > > De : "Geoff Plitt" <ge...@gweb.org> > > A : "FluidSynth mailing list" <fluid-dev@nongnu.org> > > Copie à : > > Objet : [fluid-dev] Play non-soundfont audio files, for one-shots, movie > > quotes, etc > > > > > If the answer to this is "no, fluidsynth was not designed for that" I totally > understand. > > > > Been playing with it for a while and love it, used several Soundfonts that I > liked. > > > > But once in a while I want to add a single audio file to play, like a movie > quote (for example) or a simple one-shot sound that does not warrant building > a sound font. So: > > > > ===> Does Fluidsynth's roadmap include (or can you right now do) SFZs or > one-shot audio playback of, say, WAV files? > > > > If not, I guess I can run a separate audio player in another process/program > and trigger it separately, but it would be cool to keep it all within > Fluidsynth. > > > > _______________________________________________ > 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
_______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/fluid-dev