From b3830057cb8993a68b14749087a19b7ffb1f807e Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 14 Apr 2013 18:46:06 -0700 Subject: [PATCH] Mixer: Don't list plugins which are unsuitable for RT use. --- mixer/src/LADSPAInfo.C | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mixer/src/LADSPAInfo.C b/mixer/src/LADSPAInfo.C index f35d37d..3c115c0 100644 --- a/mixer/src/LADSPAInfo.C +++ b/mixer/src/LADSPAInfo.C @@ -386,6 +386,7 @@ LADSPAInfo::DescendGroup(string prefix, pe.Name = name; pe.Category = prefix; pe.Category = pe.Category.substr(0, pe.Category.size()-1); + plugins.push_back(pe); } @@ -607,13 +608,7 @@ LADSPAInfo::ExaminePluginLibrary(const string path, library_added = true; } - if ( ! desc->Name ) - { - printf( "WARNING: LADSPA Plugin with id %lu has no name!\n", desc->UniqueID ); - - continue; - } - + // Add plugin info PluginInfo pi; pi.LibraryIndex = m_Libraries.size() - 1; @@ -658,6 +653,7 @@ LADSPAInfo::ExaminePluginLibrary(const string path, } } + desc = desc_func(++i); } } @@ -772,6 +768,11 @@ LADSPAInfo::CheckPlugin(const LADSPA_Descriptor *desc) test(!LADSPA_IS_INPLACE_BROKEN(desc->Properties), "WARNING: Plugin cannot use in place processing"); 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; }