avoid chorus depth from spamming the console

on any chorus setting, if the previous depth was out of range
This commit is contained in:
derselbst 2018-10-07 13:15:05 +02:00
parent 0920db6d1f
commit c93fdd4b10

View file

@ -348,6 +348,8 @@ fluid_chorus_set(fluid_chorus_t *chorus, int set, int nr, fluid_real_t level,
{
fluid_log(FLUID_WARN, "chorus: Too high depth. Setting it to max (%d).", MAX_SAMPLES);
modulation_depth_samples = MAX_SAMPLES;
// set depth to maximum to avoid spamming console with above warning
chorus->depth_ms = (modulation_depth_samples * 1000) / chorus->sample_rate;
}
/* initialize LFO table */