diff options
| -rw-r--r-- | rotord/vampHost.cpp | 2 | ||||
| -rw-r--r-- | rotord/vampHost.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/rotord/vampHost.cpp b/rotord/vampHost.cpp index e28419c..2521f46 100644 --- a/rotord/vampHost.cpp +++ b/rotord/vampHost.cpp @@ -643,7 +643,6 @@ bool vampHost::Analyser::init(const string &soname,const string &id,const int &_ currentStep = 0; finalStepsRemaining = max(1, (blockSize / stepSize) - 1); // at end of file, this many part-silent frames needed after we hit EOF - filebuf = new float[blockSize * channels]; plugbuf = new float*[channels]; for (int c = 0; c < channels; ++c) plugbuf[c] = new float[blockSize + 2]; @@ -742,7 +741,6 @@ void vampHost::Analyser::process_frame(uint8_t *data,int samples_in_frame){ } } void vampHost::Analyser::cleanup(){ - delete[] filebuf; for (int c = 0; c < channels; ++c) { delete[] plugbuf[c]; } diff --git a/rotord/vampHost.h b/rotord/vampHost.h index 942c98b..18fe297 100644 --- a/rotord/vampHost.h +++ b/rotord/vampHost.h @@ -54,6 +54,7 @@ namespace vampHost { Poco::Mutex mutex; //lock for progress data }; class Analyser{ + //can load any vamp analysis plugin and present its data with a unified interface public: 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); @@ -69,7 +70,6 @@ namespace vampHost { int blockSize,stepSize,overlapSize,finalStepsRemaining,currentStep,outputNo; int in_block,blocks_processed; string output; - float *filebuf; float **plugbuf; }; |
