mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-04 01:51:06 +00:00
Check LADSPA setup before activation
This commit is contained in:
parent
3486bb515b
commit
7534e54d4f
1 changed files with 6 additions and 0 deletions
|
@ -238,6 +238,12 @@ int fluid_ladspa_activate(fluid_ladspa_fx_t *fx)
|
||||||
LADSPA_API_RETURN(fx, FLUID_FAILED);
|
LADSPA_API_RETURN(fx, FLUID_FAILED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fluid_ladspa_check(fx, NULL, 0) != FLUID_OK)
|
||||||
|
{
|
||||||
|
FLUID_LOG(FLUID_ERR, "LADSPA check failed, unable to activate effects");
|
||||||
|
LADSPA_API_RETURN(fx, FLUID_FAILED);
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < fx->num_plugins; i++)
|
for (i = 0; i < fx->num_plugins; i++)
|
||||||
{
|
{
|
||||||
activate_plugin(fx->plugins[i]);
|
activate_plugin(fx->plugins[i]);
|
||||||
|
|
Loading…
Reference in a new issue