Skip to content

Commit

Permalink
Merge pull request #40 from JohannesKauffmann/minor-fixups
Browse files Browse the repository at this point in the history
Minor fixups
  • Loading branch information
divideconcept authored Oct 15, 2022
2 parents adc0bc0 + 947b982 commit 7db7cb8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
10 changes: 5 additions & 5 deletions src/fluid_chorus.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ void fluid_chorus_set_nr(fluid_chorus_t* chorus, int nr)
int fluid_chorus_get_nr(fluid_chorus_t* chorus)
{
return chorus->number_blocks;
};
}

/* Purpose:
* Sets the mixing level of the signal from each delay line (linear).
Expand All @@ -253,7 +253,7 @@ void fluid_chorus_set_level(fluid_chorus_t* chorus, fluid_real_t level)
fluid_real_t fluid_chorus_get_level(fluid_chorus_t* chorus)
{
return chorus->level;
};
}

/* Purpose:
* Sets the modulation frequency.
Expand All @@ -270,7 +270,7 @@ void fluid_chorus_set_speed_Hz(fluid_chorus_t* chorus, fluid_real_t speed_Hz)
fluid_real_t fluid_chorus_get_speed_Hz(fluid_chorus_t* chorus)
{
return chorus->speed_Hz;
};
}

/* Purpose:
* Sets the modulation depth in ms.
Expand All @@ -287,7 +287,7 @@ void fluid_chorus_set_depth_ms(fluid_chorus_t* chorus, fluid_real_t depth_ms)
fluid_real_t fluid_chorus_get_depth_ms(fluid_chorus_t* chorus)
{
return chorus->depth_ms;
};
}

/* Purpose:
* Sets the type of the modulation waveform.
Expand All @@ -304,7 +304,7 @@ void fluid_chorus_set_type(fluid_chorus_t* chorus, int type)
int fluid_chorus_get_type(fluid_chorus_t* chorus)
{
return chorus->type;
};
}

void
delete_fluid_chorus(fluid_chorus_t* chorus)
Expand Down
4 changes: 1 addition & 3 deletions src/fluid_defsfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ fluid_defpreset_noteon(fluid_defpreset_t* preset, fluid_synth_t* synth, int chan
{
fluid_preset_zone_t *preset_zone, *global_preset_zone;
fluid_inst_t* inst;
fluid_inst_zone_t *inst_zone, *global_inst_zone, *z;
fluid_inst_zone_t *inst_zone, *global_inst_zone;
fluid_sample_t* sample;
fluid_voice_t* voice;
fluid_mod_t * mod;
Expand Down Expand Up @@ -848,8 +848,6 @@ fluid_defpreset_noteon(fluid_defpreset_t* preset, fluid_synth_t* synth, int chan
}


z = inst_zone;

/* Instrument level, generators */

for (i = 0; i < GEN_LAST; i++) {
Expand Down
8 changes: 4 additions & 4 deletions src/fluid_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ fluid_mod_new()
return NULL;
}
return mod;
};
}

/*
* fluid_mod_delete
Expand All @@ -363,7 +363,7 @@ void
fluid_mod_delete(fluid_mod_t * mod)
{
FLUID_FREE(mod);
};
}

/*
* fluid_mod_test_identity
Expand All @@ -379,7 +379,7 @@ int fluid_mod_test_identity(fluid_mod_t * mod1, fluid_mod_t * mod2){
if (mod1->flags1 != mod2->flags1){return 0;}
if (mod1->flags2 != mod2->flags2){return 0;}
return 1;
};
}

/* debug function: Prints the contents of a modulator */
void fluid_dump_modulator(fluid_mod_t * mod){
Expand Down Expand Up @@ -429,6 +429,6 @@ void fluid_dump_modulator(fluid_mod_t * mod){
default: printf("dest %i",dest);
}; /* switch dest */
printf(", amount %f flags %i src2 %i flags2 %i\n",amount, flags1, src2, flags2);
};
}


3 changes: 1 addition & 2 deletions src/fluid_ramsfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ fluid_rampreset_noteon(fluid_rampreset_t* preset, fluid_synth_t* synth, int chan
{
fluid_preset_zone_t *preset_zone;
fluid_inst_t* inst;
fluid_inst_zone_t *inst_zone, *global_inst_zone, *z;
fluid_inst_zone_t *inst_zone, *global_inst_zone;
fluid_sample_t* sample;
fluid_voice_t* voice;
fluid_mod_t * mod;
Expand Down Expand Up @@ -838,7 +838,6 @@ fluid_rampreset_noteon(fluid_rampreset_t* preset, fluid_synth_t* synth, int chan
return FLUID_FAILED;
}

z = inst_zone;

/* Instrument level, generators */

Expand Down
6 changes: 3 additions & 3 deletions src/fluid_synth.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ delete_fluid_synth(fluid_synth_t* synth)
/*
* fluid_synth_error
*
* The error messages are not thread-save, yet. They are still stored
* The error messages are not thread-safe, yet. They are still stored
* in a global message buffer (see fluid_sys.c).
* */
char*
Expand Down Expand Up @@ -2527,7 +2527,7 @@ void fluid_synth_kill_by_exclusive_class(fluid_synth_t* synth, fluid_voice_t* ne

fluid_voice_kill_excl(existing_voice);
};
};
}

/*
* fluid_synth_start_voice
Expand Down Expand Up @@ -2951,7 +2951,7 @@ int fluid_synth_set_interp_method(fluid_synth_t* synth, int chan, int interp_met
};
};
return FLUID_OK;
};
}

/* Purpose:
* Returns the number of allocated midi channels
Expand Down

0 comments on commit 7db7cb8

Please sign in to comment.