libfluidsynth
2.1.8
|
Miscellaneous utility functions and defines. More...
Macros | |
#define | FLUID_OK (0) |
Value that indicates success, used by most libfluidsynth functions. More... | |
#define | FLUID_FAILED (-1) |
Value that indicates failure, used by most libfluidsynth functions. More... | |
Functions | |
FLUIDSYNTH_API int | fluid_is_soundfont (const char *filename) |
Check if a file is a SoundFont file. More... | |
FLUIDSYNTH_API int | fluid_is_midifile (const char *filename) |
Check if a file is a MIDI file. More... | |
FLUIDSYNTH_API void | fluid_free (void *ptr) |
Convenience wrapper for free() that satisfies at least C90 requirements. More... | |
Miscellaneous utility functions and defines.
#define FLUID_OK (0) |
Value that indicates success, used by most libfluidsynth functions.
#define FLUID_FAILED (-1) |
Value that indicates failure, used by most libfluidsynth functions.
FLUIDSYNTH_API int fluid_is_soundfont | ( | const char * | filename | ) |
Check if a file is a SoundFont file.
If fluidsynth was built with DLS support, this function will also identify DLS files.
filename | Path to the file to check |
FLUIDSYNTH_API int fluid_is_midifile | ( | const char * | filename | ) |
Check if a file is a MIDI file.
filename | Path to the file to check |
The current implementation only checks for the "MThd" header in the file. It is useful only to distinguish between SoundFont and MIDI files.
FLUIDSYNTH_API void fluid_free | ( | void * | ptr | ) |
Convenience wrapper for free() that satisfies at least C90 requirements.
Especially useful when using fluidsynth with programming languages that do not provide malloc() and free().
delete_fluid_*
functions.