diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-04-05 17:05:38 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-04-05 17:05:38 +0100 |
| commit | 81d4c56683303021aed05b9f5bf57abb1b154d8c (patch) | |
| tree | d1a8d403ad455f761f63f480240b81555611c689 /rotord/vampHost.h | |
| parent | 332c7c24301700ca0a4ceb104051bcd3a3b3bc4b (diff) | |
making audio analysis adapter
Diffstat (limited to 'rotord/vampHost.h')
| -rw-r--r-- | rotord/vampHost.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/rotord/vampHost.h b/rotord/vampHost.h index de6ae02..942c98b 100644 --- a/rotord/vampHost.h +++ b/rotord/vampHost.h @@ -55,12 +55,22 @@ namespace vampHost { }; class Analyser{ public: - void init(const string &soname,const string &id,const int &rate); + bool init(const string &soname,const string &id,const int &_channels,const int &_bits,const int &_samples,const int &_rate,const int &_outputNo=0,const string &_output=""); + void process_frame(uint8_t *data,int samples_in_frame); + void cleanup(); vector<float> beats; private: PluginLoader *loader; PluginLoader::PluginKey key; Plugin *plugin; + int channels,bits,samples,rate; + int bytes,stride; + float scale; + int blockSize,stepSize,overlapSize,finalStepsRemaining,currentStep,outputNo; + int in_block,blocks_processed; + string output; + float *filebuf; + float **plugbuf; }; string getQMBeats(const string soundfile); |
