summaryrefslogtreecommitdiff
path: root/vamphost/src/ofxVamphost.h
diff options
context:
space:
mode:
Diffstat (limited to 'vamphost/src/ofxVamphost.h')
-rw-r--r--vamphost/src/ofxVamphost.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/vamphost/src/ofxVamphost.h b/vamphost/src/ofxVamphost.h
index 2eb6a83..fe36d06 100644
--- a/vamphost/src/ofxVamphost.h
+++ b/vamphost/src/ofxVamphost.h
@@ -7,6 +7,7 @@
#include <map>
#include <math.h>
+#include <sndfile.h>
using Vamp::Plugin;
using Vamp::PluginHostAdapter;
@@ -20,13 +21,14 @@ using Vamp::HostExt::PluginInputDomainAdapter;
class Vamphost{
//can load any vamp analysis plugin and present its data with a unified interface
public:
- bool init(const std::string &soname,const std::string &id,const int &_channels,const int &_bits,const int &_samples,const int &_rate,const int &_outputNo=0,const std::string &_output="");
- void process_frame(unsigned char *data,int samples_in_frame);
+ int init(const std::string &soname,const std::string &id,const int &_channels,const int &_rate,const int &_outputNo=0,const std::string &_output="");
+ void process_frame(float *data,int samples_in_frame);
void cleanup();
std::map<float,int> features;
//map<time,featureNo>
//this is the best way to store features: because map allows to search for the key below and above the present time
+ int getRT();
private:
PluginLoader *loader;