1 #ifndef RunTimeLadspaLibraryLoader_hxx
2 #define RunTimeLadspaLibraryLoader_hxx
18 void SetupLibrary(
void* handle,
const std::string & pluginFullFilename)
const
20 LADSPA_Descriptor_Function descriptorTable = 0;
21 descriptorTable = (LADSPA_Descriptor_Function)
GetSymbol(handle,
"ladspa_descriptor");
24 std::cout <<
"[LADSPA Plugin] Warning: trying to open non ladspa plugin: " << pluginFullFilename << std::endl;
29 for (
unsigned long i=0; descriptorTable(i); i++)
31 LADSPA_Descriptor* descriptor = (LADSPA_Descriptor*)descriptorTable(i);
32 const char*
id = descriptor->Label;
38 factory.
AddAttribute(
id,
"description", descriptor->Name);
41 std::ostringstream oss;
42 oss << descriptor->Label <<
"_buffer" << i;
43 std::string id2=oss.str();
49 factory.
AddAttribute(id2,
"description", descriptor->Name);
50 factory.
AddAttribute(id2,
"library", pluginFullFilename);
55 std::cout<<
"[LADSPA Plugin] error unloading library handle of: " << pluginFullFilename<<std::endl;
62 static const char * result[] =
64 "/usr/local/lib/ladspa",
71 const char *
homePath()
const {
return "/.ladspa"; }
76 #endif // RunTimeLadspaLibraryLoader_hxx