diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-04-04 18:03:14 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-04-04 18:03:14 +0100 |
| commit | 332c7c24301700ca0a4ceb104051bcd3a3b3bc4b (patch) | |
| tree | 5d4d0c12c749bc1af40effae6e3d943149fa06ae /rotord/vampHost.cpp | |
| parent | ef217eb0c2450e50a25e6ae2aee36178fcdd54c7 (diff) | |
analyser loader
Diffstat (limited to 'rotord/vampHost.cpp')
| -rw-r--r-- | rotord/vampHost.cpp | 20 |
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; +} + |
