Skip to content

Commit

Permalink
fixed creation of the tables in the xcode projects. Silenced xcode wa…
Browse files Browse the repository at this point in the history
…rnings
  • Loading branch information
DominusExult committed May 1, 2024
1 parent 2c7e16d commit 1c28424
Show file tree
Hide file tree
Showing 19 changed files with 218 additions and 218 deletions.
28 changes: 14 additions & 14 deletions include/fluidsynth/sfont.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ FLUIDSYNTH_API fluid_preset_t *fluid_sfont_iteration_next(fluid_sfont_t *sfont);
/**
* Method to get a virtual SoundFont preset name.
*
* @param preset Virtual SoundFont preset
* @return Should return the name of the preset. The returned string must be
* \@param preset Virtual SoundFont preset
* \@return Should return the name of the preset. The returned string must be
* valid for the duration of the virtual preset (or the duration of the
* SoundFont, in the case of preset iteration).
*/
Expand All @@ -267,28 +267,28 @@ typedef const char *(*fluid_preset_get_name_t)(fluid_preset_t *preset);
/**
* Method to get a virtual SoundFont preset MIDI bank number.
*
* @param preset Virtual SoundFont preset
* @param return The bank number of the preset
* \@param preset Virtual SoundFont preset
* \@param return The bank number of the preset
*/
typedef int (*fluid_preset_get_banknum_t)(fluid_preset_t *preset);

/**
* Method to get a virtual SoundFont preset MIDI program number.
*
* @param preset Virtual SoundFont preset
* @param return The program number of the preset
* \@param preset Virtual SoundFont preset
* \@param return The program number of the preset
*/
typedef int (*fluid_preset_get_num_t)(fluid_preset_t *preset);

/**
* Method to handle a noteon event (synthesize the instrument).
*
* @param preset Virtual SoundFont preset
* @param synth Synthesizer instance
* @param chan MIDI channel number of the note on event
* @param key MIDI note number (0-127)
* @param vel MIDI velocity (0-127)
* @return #FLUID_OK on success (0) or #FLUID_FAILED (-1) otherwise
* \@param preset Virtual SoundFont preset
* \@param synth Synthesizer instance
* \@param chan MIDI channel number of the note on event
* \@param key MIDI note number (0-127)
* \@param vel MIDI velocity (0-127)
* \@return #FLUID_OK on success (0) or #FLUID_FAILED (-1) otherwise
*
* This method may be called from within synthesis context and therefore
* should be as efficient as possible and not perform any operations considered
Expand All @@ -308,8 +308,8 @@ typedef int (*fluid_preset_noteon_t)(fluid_preset_t *preset, fluid_synth_t *synt
/**
* Method to free a virtual SoundFont preset.
*
* @param preset Virtual SoundFont preset
* @return Should return 0
* \@param preset Virtual SoundFont preset
* \@return Should return 0
*
* Any custom user provided cleanup function must ultimately call
* delete_fluid_preset() to ensure proper cleanup of the #fluid_preset_t struct. If no private data
Expand Down
6 changes: 3 additions & 3 deletions src/midi/fluid_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1055,10 +1055,10 @@ fluid_midi_file_get_division(fluid_midi_file *midifile)

/**
* Create a MIDI event structure.
* @return New MIDI event structure or NULL when out of memory.
* \@return New MIDI event structure or NULL when out of memory.
*/
fluid_midi_event_t *
new_fluid_midi_event()
new_fluid_midi_event(void)
{
fluid_midi_event_t *evt;
evt = FLUID_NEW(fluid_midi_event_t);
Expand Down Expand Up @@ -2696,7 +2696,7 @@ int fluid_player_get_midi_tempo(fluid_player_t *player)
* new_fluid_midi_parser
*/
fluid_midi_parser_t *
new_fluid_midi_parser()
new_fluid_midi_parser(void)
{
fluid_midi_parser_t *parser;
parser = FLUID_NEW(fluid_midi_parser_t);
Expand Down
4 changes: 2 additions & 2 deletions src/midi/fluid_midi_router.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ new_fluid_midi_router(fluid_settings_t *settings, handle_midi_event_func_t handl

/**
* Delete a MIDI router instance.
* @param router MIDI router to delete
* @return Returns #FLUID_OK on success, #FLUID_FAILED otherwise (only if NULL
* \@param router MIDI router to delete
* \@return Returns #FLUID_OK on success, #FLUID_FAILED otherwise (only if NULL
* \a router passed really)
*/
void
Expand Down
8 changes: 4 additions & 4 deletions src/midi/fluid_seq.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ delete_fluid_sequencer(fluid_sequencer_t *seq)
/**
* Check if a sequencer is using the system timer or not.
*
* @param seq Sequencer object
* @return TRUE if system timer is being used, FALSE otherwise.
* \@param seq Sequencer object
* \@return TRUE if system timer is being used, FALSE otherwise.
*
* @deprecated As of fluidsynth 2.1.1 the usage of the system timer has been deprecated.
* \@deprecated As of fluidsynth 2.1.1 the usage of the system timer has been deprecated.
*
* @since 1.1.0
* \@since 1.1.0
*/
int
fluid_sequencer_get_use_system_timer(fluid_sequencer_t *seq)
Expand Down
18 changes: 9 additions & 9 deletions src/rvoice/fluid_chorus.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,8 @@ static int new_mod_delay_line(fluid_chorus_t *chorus, int delay_length)
* fluid_chorus_set() must be called at least one time after calling
* new_fluid_chorus().
*
* @param sample_rate, audio sample rate in Hz.
* @return pointer on chorus unit.
* \@param sample_rate, audio sample rate in Hz.
* \@return pointer on chorus unit.
*/
fluid_chorus_t *
new_fluid_chorus(fluid_real_t sample_rate)
Expand Down Expand Up @@ -921,9 +921,9 @@ fluid_chorus_samplerate_change(fluid_chorus_t *chorus, fluid_real_t sample_rate)

/**
* Process chorus by mixing the result in output buffer.
* @param chorus pointer on chorus unit returned by new_fluid_chorus().
* @param in, pointer on monophonic input buffer of FLUID_BUFSIZE samples.
* @param left_out, right_out, pointers on stereo output buffers of
* \@param chorus pointer on chorus unit returned by new_fluid_chorus().
* \@param in, pointer on monophonic input buffer of FLUID_BUFSIZE samples.
* \@param left_out, right_out, pointers on stereo output buffers of
* FLUID_BUFSIZE samples.
*/
void fluid_chorus_processmix(fluid_chorus_t *chorus, const fluid_real_t *in,
Expand Down Expand Up @@ -996,9 +996,9 @@ void fluid_chorus_processmix(fluid_chorus_t *chorus, const fluid_real_t *in,

/**
* Process chorus by putting the result in output buffer (no mixing).
* @param chorus pointer on chorus unit returned by new_fluid_chorus().
* @param in, pointer on monophonic input buffer of FLUID_BUFSIZE samples.
* @param left_out, right_out, pointers on stereo output buffers of
* \@param chorus pointer on chorus unit returned by new_fluid_chorus().
* \@param in, pointer on monophonic input buffer of FLUID_BUFSIZE samples.
* \@param left_out, right_out, pointers on stereo output buffers of
* FLUID_BUFSIZE samples.
*/
/* Duplication of code ... (replaces sample data instead of mixing) */
Expand All @@ -1012,7 +1012,7 @@ void fluid_chorus_processreplace(fluid_chorus_t *chorus, const fluid_real_t *in,
/* foreach sample, process output sample then input sample */
for(sample_index = 0; sample_index < FLUID_BUFSIZE; sample_index++)
{
fluid_real_t out; /* block output */
fluid_real_t out = 0.0; /* block output */

d_out[0] = d_out[1] = 0.0f; /* clear stereo unit input */

Expand Down
16 changes: 8 additions & 8 deletions src/rvoice/fluid_rvoice_mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,15 +1032,15 @@ fluid_rvoice_mixer_set_reverb_full(const fluid_rvoice_mixer_t *mixer,
* get one reverb shadow parameter for one fx group.
* (see fluid_rvoice_mixer_set_reverb_full())
*
* @param mixer that contains all fx group units.
* @param fx_group index of the fx group to get parameter from.
* \@param mixer that contains all fx group units.
* \@param fx_group index of the fx group to get parameter from.
* must be in the range [0..mixer->fx_units[.
* @param enum indicating the parameter to get.
* \@param enum indicating the parameter to get.
* FLUID_REVERB_ROOMSIZE, reverb room size value.
* FLUID_REVERB_DAMP, reverb damping value.
* FLUID_REVERB_WIDTH, reverb width value.
* FLUID_REVERB_LEVEL, reverb level value.
* @return value.
* \@return value.
*/
double
fluid_rvoice_mixer_reverb_get_param(const fluid_rvoice_mixer_t *mixer,
Expand Down Expand Up @@ -1096,11 +1096,11 @@ fluid_rvoice_mixer_set_chorus_full(const fluid_rvoice_mixer_t *mixer,
* get one chorus shadow parameter for one fx group.
* (see fluid_rvoice_mixer_set_chorus_full())
*
* @param mixer that contains all fx groups units.
* @param fx_group index of the fx group to get parameter from.
* \@param mixer that contains all fx groups units.
* \@param fx_group index of the fx group to get parameter from.
* must be in the range [0..mixer->fx_units[.
* @param get Flags indicating which parameter to get (#fluid_chorus_set_t)
* @return the parameter value (0.0 is returned if error)
* \@param get Flags indicating which parameter to get (#fluid_chorus_set_t)
* \@return the parameter value (0.0 is returned if error)
*/
double
fluid_rvoice_mixer_chorus_get_param(const fluid_rvoice_mixer_t *mixer,
Expand Down
20 changes: 10 additions & 10 deletions src/sfloader/fluid_defsfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -1312,9 +1312,9 @@ static int fluid_preset_zone_create_voice_zones(fluid_preset_zone_t *preset_zone
/**
* Checks if modulator mod is identical to another modulator in the list
* (specs SF 2.0X 7.4, 7.8).
* @param mod, modulator list.
* @param name, if not NULL, pointer on a string displayed as warning.
* @return TRUE if mod is identical to another modulator, FALSE otherwise.
* \@param mod, modulator list.
* \@param name, if not NULL, pointer on a string displayed as warning.
* \@return TRUE if mod is identical to another modulator, FALSE otherwise.
*/
static int
fluid_zone_is_mod_identical(fluid_mod_t *mod, char *name)
Expand Down Expand Up @@ -1345,8 +1345,8 @@ fluid_zone_is_mod_identical(fluid_mod_t *mod, char *name)
* This is appropriate to internal synthesizer modulators tables
* which have a fixed size (FLUID_NUM_MOD).
*
* @param zone_name, zone name
* @param list_mod, address of pointer on modulator list.
* \@param zone_name, zone name
* \@param list_mod, address of pointer on modulator list.
*/
static void fluid_limit_mod_list(char *zone_name, fluid_mod_t **list_mod)
{
Expand Down Expand Up @@ -1384,8 +1384,8 @@ static void fluid_limit_mod_list(char *zone_name, fluid_mod_t **list_mod)
* Checks and remove invalid modulators from a zone modulators list.
* - checks valid modulator sources (specs SF 2.01 7.4, 7.8, 8.2.1).
* - checks identical modulators in the list (specs SF 2.01 7.4, 7.8).
* @param zone_name, zone name.
* @param list_mod, address of pointer on modulators list.
* \@param zone_name, zone name.
* \@param list_mod, address of pointer on modulators list.
*/
static void
fluid_zone_check_mod(char *zone_name, fluid_mod_t **list_mod)
Expand Down Expand Up @@ -1746,7 +1746,7 @@ fluid_preset_zone_get_inst(fluid_preset_zone_t *zone)
* new_fluid_inst
*/
fluid_inst_t *
new_fluid_inst()
new_fluid_inst(void)
{
fluid_inst_t *inst = FLUID_NEW(fluid_inst_t);

Expand Down Expand Up @@ -1807,7 +1807,7 @@ fluid_inst_import_sfont(int inst_idx, fluid_defsfont_t *defsfont, SFData *sfdata
fluid_list_t *inst_list;
fluid_inst_t *inst;
SFZone *sfzone;
SFInst *sfinst;
SFInst *sfinst = NULL;
fluid_inst_zone_t *inst_zone;
char zone_name[256];
int count;
Expand Down Expand Up @@ -2014,7 +2014,7 @@ fluid_inst_zone_import_sfont(fluid_inst_zone_t *inst_zone, fluid_inst_zone_t *gl
if (inst_zone->gen[GEN_SAMPLEID].flags == GEN_SET)
{
fluid_list_t *list;
SFSample *sfsample;
SFSample *sfsample = NULL;
int sample_idx = (int) inst_zone->gen[GEN_SAMPLEID].val;

/* find the SFSample by index */
Expand Down
10 changes: 5 additions & 5 deletions src/sfloader/fluid_sfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ void delete_fluid_preset(fluid_preset_t *preset)
* @return The sample on success, NULL otherwise.
*/
fluid_sample_t *
new_fluid_sample()
new_fluid_sample(void)
{
fluid_sample_t *sample = NULL;

Expand Down Expand Up @@ -536,15 +536,15 @@ delete_fluid_sample(fluid_sample_t *sample)
/**
* Returns the size of the fluid_sample_t structure.
*
* @return Size of fluid_sample_t in bytes
* \@return Size of fluid_sample_t in bytes
*
* Useful in low latency scenarios e.g. to allocate a pool of samples.
*
* @note It is recommend to zero initialize the memory before using the object.
* \@note It is recommend to zero initialize the memory before using the object.
*
* @warning Do NOT allocate samples on the stack and assign them to a voice!
* \@warning Do NOT allocate samples on the stack and assign them to a voice!
*/
size_t fluid_sample_sizeof()
size_t fluid_sample_sizeof(void)
{
return sizeof(fluid_sample_t);
}
Expand Down
22 changes: 11 additions & 11 deletions src/synth/fluid_chan.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,10 @@ fluid_channel_update_legato_staccato_state(fluid_channel_t *chan)
* When a note is added at noteOn each element is use in the forward direction
* and indexed by i_last variable.
*
* @param chan fluid_channel_t.
* @param key MIDI note number (0-127).
* @param vel MIDI velocity (0-127, 0=noteoff).
* @param onenote. When 1 the function adds the note but the monophonic list
* \@param chan fluid_channel_t.
* \@param key MIDI note number (0-127).
* \@param vel MIDI velocity (0-127, 0=noteoff).
* \@param onenote. When 1 the function adds the note but the monophonic list
* keeps only one note (used on noteOn poly).
* Note: i_last index keeps a trace of the most recent note added.
* prev_note keeps a trace of the note prior i_last note.
Expand Down Expand Up @@ -528,11 +528,11 @@ fluid_channel_search_monolist(fluid_channel_t *chan, unsigned char key, int *i_p
* When a note is removed at noteOff the element concerned is fast unlinked
* and relinked after the i_last element.
*
* @param chan fluid_channel_t.
* @param
* \@param chan fluid_channel_t.
* \@param
* i, index of the note to remove. If i is invalid or the list is
* empty, the function do nothing and returns FLUID_FAILED.
* @param
* \@param
* On input, i_prev is a pointer on index of the note previous i.
* On output i_prev is a pointer on index of the note previous i if i is the last note
* in the list,FLUID_FAILED otherwise. When the returned index is valid it means
Expand Down Expand Up @@ -666,8 +666,8 @@ void fluid_channel_invalid_prev_note_staccato(fluid_channel_t *chan)

/**
* The function handles poly/mono commutation on legato pedal On/Off.
* @param chan fluid_channel_t.
* @param value, value of the CC legato.
* \@param chan fluid_channel_t.
* \@param value, value of the CC legato.
*/
void fluid_channel_cc_legato(fluid_channel_t *chan, int value)
{
Expand Down Expand Up @@ -704,8 +704,8 @@ void fluid_channel_cc_legato(fluid_channel_t *chan, int value)
* Breath Sync mode and in monophonic playing, the breath controller allows
* to trigger noteon/noteoff note when the musician starts to breath (noteon) and
* stops to breath (noteoff).
* @param chan fluid_channel_t.
* @param value, value of the CC Breath..
* \@param chan fluid_channel_t.
* \@param value, value of the CC Breath..
*/
void fluid_channel_cc_breath_note_on_off(fluid_channel_t *chan, int value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/synth/fluid_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fluid_event_clear(fluid_event_t *evt)
* @return New sequencer event structure or NULL if out of memory
*/
fluid_event_t *
new_fluid_event()
new_fluid_event(void)
{
fluid_event_t *evt;

Expand Down
Loading

0 comments on commit 1c28424

Please sign in to comment.