|
libfluidsynth 2.5.4
|
Miscellaneous utility functions and defines. More...
Macros | |
| #define | FLUID_FAILED (-1) |
| Value that indicates failure, used by most libfluidsynth functions. | |
| #define | FLUID_OK (0) |
| Value that indicates success, used by most libfluidsynth functions. | |
| #define | FLUIDSYNTH_VERSION "2.5.4" |
| String constant of libfluidsynth version. | |
| #define | FLUIDSYNTH_VERSION_MAJOR 2 |
| libfluidsynth major version integer constant. | |
| #define | FLUIDSYNTH_VERSION_MICRO 4 |
| libfluidsynth micro version integer constant. | |
| #define | FLUIDSYNTH_VERSION_MINOR 5 |
| libfluidsynth minor version integer constant. | |
Functions | |
| void | fluid_free (void *ptr) |
| Wrapper for free() that satisfies at least C90 requirements. | |
| int | fluid_is_midifile (const char *filename) |
| Check if a file is a MIDI file. | |
| int | fluid_is_soundfont (const char *filename) |
| Check if a file is a SoundFont file. | |
| void | fluid_version (int *major, int *minor, int *micro) |
| Get FluidSynth runtime version. | |
| const char * | fluid_version_str (void) |
| Get FluidSynth runtime version as a string. | |
Miscellaneous utility functions and defines.
| #define FLUID_FAILED (-1) |
Value that indicates failure, used by most libfluidsynth functions.
| #define FLUID_OK (0) |
Value that indicates success, used by most libfluidsynth functions.
| void fluid_free | ( | void * | ptr | ) |
Wrapper for free() that satisfies at least C90 requirements.
| ptr | Pointer to memory region that should be freed |
delete_fluid_* functions.free() on memory that is advised to be freed with fluid_free() results in undefined behaviour! (cf.: "Potential Errors Passing CRT Objects Across DLL Boundaries" found in MS Docs)| 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.
| int fluid_is_soundfont | ( | const char * | filename | ) |
Check if a file is a SoundFont file.
| filename | Path to the file to check |
This function uses regular fopen(), fread() and fseek() to identify known Soundfont formats. If fluidsynth was built with DLS support, this function will also identify DLS files.
| void fluid_version | ( | int * | major, |
| int * | minor, | ||
| int * | micro ) |
Get FluidSynth runtime version.
| major | Location to store major number |
| minor | Location to store minor number |
| micro | Location to store micro number |
| const char * fluid_version_str | ( | void | ) |
Get FluidSynth runtime version as a string.