diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-05-26 15:08:46 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-05-26 15:08:46 +0100 |
| commit | 30d4c7382ceb71ae2072616f95bf47fd2ec036e8 (patch) | |
| tree | c58a788c72ae2410d24c51d00c0e67f47ba127d5 /vamphost/src/ofxVamphost.h | |
| parent | 63971c9b5e2dcfa1b7e254cac9cac5629c776835 (diff) | |
switching vamp plugins
Diffstat (limited to 'vamphost/src/ofxVamphost.h')
| -rw-r--r-- | vamphost/src/ofxVamphost.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vamphost/src/ofxVamphost.h b/vamphost/src/ofxVamphost.h index 2c618eb..245b7ff 100644 --- a/vamphost/src/ofxVamphost.h +++ b/vamphost/src/ofxVamphost.h @@ -21,7 +21,12 @@ using Vamp::HostExt::PluginInputDomainAdapter; class Vamphost{ //can load any vamp analysis plugin and present its data with a unified interface public: + Vamphost(); int init(const std::string &soname,const std::string &id,const int &_channels,const int &_rate,const int &_outputNo=0,const std::string &_output=""); + int init(int whichplugin,const int &_channels,const int &_rate,const int &_outputNo=0,const std::string &_output=""); + int init(const int &_channels,const int &_rate,const int &_outputNo=0,const std::string &_output=""); + int init(int whichplugin); + int init(); void process_frame(float *data,int samples_in_frame); void cleanup(); @@ -33,10 +38,13 @@ class Vamphost{ float avg; int num; int numFeat; + + PluginLoader::PluginKey key; + PluginLoader::PluginKeyList list; private: + PluginLoader *loader; - PluginLoader::PluginKey key; Plugin *plugin; RealTime rt; int channels,bits,samples,rate; |
