Mixer: Don't list plugins which are unsuitable for RT use.
This commit is contained in:
parent
f5eaf5bc2d
commit
b3830057cb
|
@ -387,6 +387,7 @@ LADSPAInfo::DescendGroup(string prefix,
|
||||||
pe.Category = prefix;
|
pe.Category = prefix;
|
||||||
pe.Category = pe.Category.substr(0, pe.Category.size()-1);
|
pe.Category = pe.Category.substr(0, pe.Category.size()-1);
|
||||||
|
|
||||||
|
|
||||||
plugins.push_back(pe);
|
plugins.push_back(pe);
|
||||||
}
|
}
|
||||||
plugins.sort();
|
plugins.sort();
|
||||||
|
@ -607,12 +608,6 @@ LADSPAInfo::ExaminePluginLibrary(const string path,
|
||||||
library_added = true;
|
library_added = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! desc->Name )
|
|
||||||
{
|
|
||||||
printf( "WARNING: LADSPA Plugin with id %lu has no name!\n", desc->UniqueID );
|
|
||||||
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add plugin info
|
// Add plugin info
|
||||||
PluginInfo pi;
|
PluginInfo pi;
|
||||||
|
@ -658,6 +653,7 @@ LADSPAInfo::ExaminePluginLibrary(const string path,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
desc = desc_func(++i);
|
desc = desc_func(++i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -772,6 +768,11 @@ LADSPAInfo::CheckPlugin(const LADSPA_Descriptor *desc)
|
||||||
test(!LADSPA_IS_INPLACE_BROKEN(desc->Properties),
|
test(!LADSPA_IS_INPLACE_BROKEN(desc->Properties),
|
||||||
"WARNING: Plugin cannot use in place processing");
|
"WARNING: Plugin cannot use in place processing");
|
||||||
test(desc->PortCount, "WARNING: Plugin has no ports");
|
test(desc->PortCount, "WARNING: Plugin has no ports");
|
||||||
|
test(desc->Name, "WARNING: Plugin has no name" );
|
||||||
|
|
||||||
|
test( !( LADSPA_IS_INPLACE_BROKEN( desc->Properties ) ), "WARNING: plugin inplace processing is broken" );
|
||||||
|
|
||||||
|
test ( LADSPA_IS_HARD_RT_CAPABLE( desc->Properties ), "WARNING: Plugin is not RT incapable" );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue