mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-01 00:21:14 +00:00
warn if a voice exceeds supported modulator count
This commit is contained in:
parent
081595464b
commit
4b3590a326
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue