warn if a voice exceeds supported modulator count

This commit is contained in:
Tom M 2017-08-21 18:41:04 +02:00 committed by GitHub
parent 081595464b
commit 4b3590a326

View file

@ -1371,6 +1371,10 @@ fluid_voice_add_mod(fluid_voice_t* voice, fluid_mod_t* mod, int mode)
if (voice->mod_count < FLUID_NUM_MOD) {
fluid_mod_clone(&voice->mod[voice->mod_count++], mod);
}
else
{
FLUID_LOG(FLUID_WARN, "Voice %i has more modulators than supported, ignoring.", voice->id);
}
}
/**