mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-30 16:01:51 +00:00
remove macro fluid_sfont_get_id() from public API
This commit is contained in:
parent
52872305f2
commit
4776b7e407
3 changed files with 3 additions and 1 deletions
|
@ -85,6 +85,7 @@ Changes in FluidSynth 2.0.0 concerning developers:
|
||||||
- remove fluid_synth_set_gen2(), fluid_synth_set_gen() now behaves as fluid_synth_set_gen2()
|
- remove fluid_synth_set_gen2(), fluid_synth_set_gen() now behaves as fluid_synth_set_gen2()
|
||||||
- remove struct fluid_mod_t from public API, use the getters and setters of mod.h instead
|
- remove struct fluid_mod_t from public API, use the getters and setters of mod.h instead
|
||||||
- remove struct _fluid_gen_t, fluid_gen_set_default_values() and enum fluid_gen_flags from public API
|
- remove struct _fluid_gen_t, fluid_gen_set_default_values() and enum fluid_gen_flags from public API
|
||||||
|
- remove macro fluid_sfont_get_id() from public API
|
||||||
<br /><br />
|
<br /><br />
|
||||||
- all public \c fluid_settings_* functions that return an integer which is not meant to be interpreted as bool consistently return either FLUID_OK or FLUID_FAILED
|
- all public \c fluid_settings_* functions that return an integer which is not meant to be interpreted as bool consistently return either FLUID_OK or FLUID_FAILED
|
||||||
- all public delete_* functions return void and are safe when called with NULL
|
- all public delete_* functions return void and are safe when called with NULL
|
||||||
|
|
|
@ -191,7 +191,6 @@ struct _fluid_sfont_t {
|
||||||
int (*iteration_next)(fluid_sfont_t* sfont, fluid_preset_t* preset);
|
int (*iteration_next)(fluid_sfont_t* sfont, fluid_preset_t* preset);
|
||||||
};
|
};
|
||||||
|
|
||||||
#define fluid_sfont_get_id(_sf) ((_sf)->id)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Virtual SoundFont preset.
|
* Virtual SoundFont preset.
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
|
|
||||||
|
|
||||||
#define delete_fluid_sfont(_sf) ( ((_sf) && (_sf)->free)? (*(_sf)->free)(_sf) : 0)
|
#define delete_fluid_sfont(_sf) ( ((_sf) && (_sf)->free)? (*(_sf)->free)(_sf) : 0)
|
||||||
|
|
||||||
|
#define fluid_sfont_get_id(_sf) ((_sf)->id)
|
||||||
#define fluid_sfont_get_name(_sf) (*(_sf)->get_name)(_sf)
|
#define fluid_sfont_get_name(_sf) (*(_sf)->get_name)(_sf)
|
||||||
#define fluid_sfont_get_preset(_sf,_bank,_prenum) (*(_sf)->get_preset)(_sf,_bank,_prenum)
|
#define fluid_sfont_get_preset(_sf,_bank,_prenum) (*(_sf)->get_preset)(_sf,_bank,_prenum)
|
||||||
#define fluid_sfont_iteration_start(_sf) (*(_sf)->iteration_start)(_sf)
|
#define fluid_sfont_iteration_start(_sf) (*(_sf)->iteration_start)(_sf)
|
||||||
|
|
Loading…
Reference in a new issue