diff options
| author | Comment <tim@gray.(none)> | 2013-05-21 01:06:38 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-05-21 01:06:38 +0100 |
| commit | e453cc17916908104467875db31e3fa08817cce1 (patch) | |
| tree | 4f89f8d0b1d2cad4b5ffd1ec7607a846c26dedfd /vamphost/src/ofxVamphost.h | |
| parent | cb7ec4965e6ec3d2142522c5c110b240f800e55d (diff) | |
vamphost
Diffstat (limited to 'vamphost/src/ofxVamphost.h')
| -rw-r--r-- | vamphost/src/ofxVamphost.h | 6 |
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; |
