Mercurial > hg > vamp-plugin-sdk
comparison examples/PercussionOnsetDetector.h @ 47:be8fdfe25693
* Change input buffers arg to process from float ** to const float *const *
to avoid plugins modifying their input data
* Some improvements to comments
* Fix stupidity in frequency-domain input passing (there are n/2+1 values,
not n/2)
author | cannam |
---|---|
date | Fri, 08 Dec 2006 17:39:32 +0000 |
parents | 154f86cb8c99 |
children | aa64a46320d4 |
comparison
equal
deleted
inserted
replaced
46:2858c897d90f | 47:be8fdfe25693 |
---|---|
63 float getParameter(std::string name) const; | 63 float getParameter(std::string name) const; |
64 void setParameter(std::string name, float value); | 64 void setParameter(std::string name, float value); |
65 | 65 |
66 OutputList getOutputDescriptors() const; | 66 OutputList getOutputDescriptors() const; |
67 | 67 |
68 FeatureSet process(float **inputBuffers, Vamp::RealTime timestamp); | 68 FeatureSet process(const float *const *inputBuffers, |
69 Vamp::RealTime timestamp); | |
69 | 70 |
70 FeatureSet getRemainingFeatures(); | 71 FeatureSet getRemainingFeatures(); |
71 | 72 |
72 protected: | 73 protected: |
73 size_t m_stepSize; | 74 size_t m_stepSize; |