summaryrefslogtreecommitdiff
path: root/rotord/vampHost.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/vampHost.cpp')
-rw-r--r--rotord/vampHost.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/rotord/vampHost.cpp b/rotord/vampHost.cpp
index 947e49a..b9b0781 100644
--- a/rotord/vampHost.cpp
+++ b/rotord/vampHost.cpp
@@ -587,4 +587,22 @@ float vampHost::QMAnalyser::get_progress(){
p=progress;
mutex.unlock();
return p;
-} \ No newline at end of file
+}
+void vampHost::Analyser::init(const string &soname,const string &id,const int &rate){
+
+ loader = PluginLoader::getInstance();
+ key = loader->composePluginKey(soname, id);
+ Plugin *plugin = loader->loadPlugin(key, rate, PluginLoader::ADAPT_ALL_SAFE);
+ if (!plugin) {
+ cerr << ": ERROR: Failed to load plugin \"" << id
+ << "\" from library \"" << soname << "\"" << endl;
+ return;
+ }
+
+ cerr << "Running plugin: \"" << plugin->getIdentifier() << "\"..." << endl;
+
+ delete plugin;
+
+ return;
+}
+