mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-26 05:40:49 +00:00
parent
b768ad6d14
commit
f74f415a69
1 changed files with 11 additions and 11 deletions
|
@ -351,22 +351,22 @@ fluid_chorus_set(fluid_chorus_t *chorus, int set, int nr, fluid_real_t level,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* initialize LFO table */
|
/* initialize LFO table */
|
||||||
if(chorus->type == FLUID_CHORUS_MOD_SINE)
|
switch(chorus->type)
|
||||||
{
|
|
||||||
fluid_chorus_sine(chorus->lookup_tab, chorus->modulation_period_samples,
|
|
||||||
modulation_depth_samples);
|
|
||||||
}
|
|
||||||
else if(chorus->type == FLUID_CHORUS_MOD_TRIANGLE)
|
|
||||||
{
|
|
||||||
fluid_chorus_triangle(chorus->lookup_tab, chorus->modulation_period_samples,
|
|
||||||
modulation_depth_samples);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
|
default:
|
||||||
fluid_log(FLUID_WARN, "chorus: Unknown modulation type. Using sinewave.");
|
fluid_log(FLUID_WARN, "chorus: Unknown modulation type. Using sinewave.");
|
||||||
chorus->type = FLUID_CHORUS_MOD_SINE;
|
chorus->type = FLUID_CHORUS_MOD_SINE;
|
||||||
|
/* fall-through */
|
||||||
|
|
||||||
|
case FLUID_CHORUS_MOD_SINE:
|
||||||
fluid_chorus_sine(chorus->lookup_tab, chorus->modulation_period_samples,
|
fluid_chorus_sine(chorus->lookup_tab, chorus->modulation_period_samples,
|
||||||
modulation_depth_samples);
|
modulation_depth_samples);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case FLUID_CHORUS_MOD_TRIANGLE:
|
||||||
|
fluid_chorus_triangle(chorus->lookup_tab, chorus->modulation_period_samples,
|
||||||
|
modulation_depth_samples);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i = 0; i < chorus->number_blocks; i++)
|
for(i = 0; i < chorus->number_blocks; i++)
|
||||||
|
|
Loading…
Reference in a new issue