mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
avoid chorus depth from spamming the console
on any chorus setting, if the previous depth was out of range
This commit is contained in:
parent
0920db6d1f
commit
c93fdd4b10
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue