From 5c5423df32d221329fda0351cb4992d9f53be600 Mon Sep 17 00:00:00 2001 From: derselbst Date: Sat, 25 Nov 2017 22:54:48 +0100 Subject: [PATCH] update API doc about new_fluid_defsfloader() --- src/sfloader/fluid_defsfont.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sfloader/fluid_defsfont.c b/src/sfloader/fluid_defsfont.c index 98bf990f..3ec3766e 100644 --- a/src/sfloader/fluid_defsfont.c +++ b/src/sfloader/fluid_defsfont.c @@ -82,6 +82,14 @@ static const fluid_file_callbacks_t def_file_callbacks = default_ftell }; +/** + * Creates a default soundfont2 loader that can be used with fluid_synth_add_sfloader(). + * By default every synth instance has an initial default soundfont loader instance. + * Calling this function is usually only necessary to load a soundfont from memory, by overriding \c fluid_sfloader_t::file_callbacks member. + * + * @param settings A settings instance obtained by new_fluid_settings() + * @return A default soundfont2 loader struct + */ fluid_sfloader_t* new_fluid_defsfloader(fluid_settings_t* settings) { fluid_sfloader_t* loader;