mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
change fluid_sfloader_t::free() to return void
This commit is contained in:
parent
f55e90aa80
commit
3c39d68294
2 changed files with 7 additions and 9 deletions
|
@ -81,12 +81,11 @@ struct _fluid_sfloader_t {
|
|||
const fluid_file_callbacks_t* file_callbacks;
|
||||
|
||||
/**
|
||||
* The free method should free the memory allocated for the loader in
|
||||
* addition to any private data.
|
||||
* @param loader SoundFont loader
|
||||
* @return Should return 0 if no error occured, non-zero otherwise
|
||||
* The free method should free the memory allocated for the loader in
|
||||
* addition to any private data.
|
||||
* @param loader SoundFont loader
|
||||
*/
|
||||
int (*free)(fluid_sfloader_t* loader);
|
||||
void (*free)(fluid_sfloader_t* loader);
|
||||
|
||||
/**
|
||||
* Method to load an instrument file (does not actually need to be a real file name,
|
||||
|
@ -134,7 +133,7 @@ struct _fluid_file_callbacks_t {
|
|||
|
||||
|
||||
FLUIDSYNTH_API fluid_sfloader_t* new_fluid_defsfloader(fluid_settings_t* settings);
|
||||
FLUIDSYNTH_API int delete_fluid_defsfloader(fluid_sfloader_t* loader);
|
||||
FLUIDSYNTH_API void delete_fluid_defsfloader(fluid_sfloader_t* loader);
|
||||
|
||||
/*
|
||||
* Virtual SoundFont instance structure.
|
||||
|
|
|
@ -100,12 +100,11 @@ fluid_sfloader_t* new_fluid_defsfloader(fluid_settings_t* settings)
|
|||
return loader;
|
||||
}
|
||||
|
||||
int delete_fluid_defsfloader(fluid_sfloader_t* loader)
|
||||
void delete_fluid_defsfloader(fluid_sfloader_t* loader)
|
||||
{
|
||||
fluid_return_val_if_fail(loader != NULL, 0);
|
||||
fluid_return_if_fail(loader != NULL);
|
||||
|
||||
FLUID_FREE(loader);
|
||||
return 0;
|
||||
}
|
||||
|
||||
fluid_sfont_t* fluid_defsfloader_load(fluid_sfloader_t* loader, const char* filename)
|
||||
|
|
Loading…
Reference in a new issue