mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-05 23:19:06 +02:00
Part 2 of fix for bug #1045
This commit is contained in:
parent
404dd924f5
commit
54802dded9
@ -227,7 +227,16 @@ wxArrayString LV2EffectsModule::FindPlugins(PluginManagerInterface & WXUNUSED(pm
|
||||
wxArrayString plugins;
|
||||
LILV_FOREACH(plugins, i, plugs)
|
||||
{
|
||||
plugins.Add(LilvString(lilv_plugin_get_uri(lilv_plugins_get(plugs, i))));
|
||||
const LilvPlugin *plug = lilv_plugins_get(plugs, i);
|
||||
|
||||
// Bypass Instrument (MIDI) plugins for now
|
||||
const LilvPluginClass *cls = lilv_plugin_get_class(plug);
|
||||
if (lilv_node_equals(lilv_plugin_class_get_uri(cls), LV2Effect::gInstrument))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
plugins.Add(LilvString(lilv_plugin_get_uri(plug)));
|
||||
}
|
||||
|
||||
return plugins;
|
||||
|
@ -44,6 +44,7 @@
|
||||
URI( gAudio, LV2_CORE__AudioPort ) \
|
||||
URI( gControl, LV2_CORE__ControlPort ) \
|
||||
URI( gInput, LV2_CORE__InputPort ) \
|
||||
URI( gInstrument, LV2_CORE__InstrumentPlugin ) \
|
||||
URI( gOutput, LV2_CORE__OutputPort ) \
|
||||
URI( gOptional, LV2_CORE__connectionOptional ) \
|
||||
URI( gEnumeration, LV2_CORE__enumeration ) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user