comparison plugins/Silence.h @ 31:2e979622bd93

Update plugin version numbers, remove API version back compatibility (API v1 is now so long out of date)
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 09 Jul 2012 15:44:07 +0100
parents 8c939fff7ee1
children 8a20f3488d88
comparison
equal deleted inserted replaced
30:7fd8f7a0b088 31:2e979622bd93
21 #include <aubio/aubio.h> 21 #include <aubio/aubio.h>
22 22
23 class Silence : public Vamp::Plugin 23 class Silence : public Vamp::Plugin
24 { 24 {
25 public: 25 public:
26 Silence(float inputSampleRate, unsigned int apiVersion); 26 Silence(float inputSampleRate);
27 virtual ~Silence(); 27 virtual ~Silence();
28 28
29 bool initialise(size_t channels, size_t stepSize, size_t blockSize); 29 bool initialise(size_t channels, size_t stepSize, size_t blockSize);
30 void reset(); 30 void reset();
31 31
51 Vamp::RealTime timestamp); 51 Vamp::RealTime timestamp);
52 52
53 FeatureSet getRemainingFeatures(); 53 FeatureSet getRemainingFeatures();
54 54
55 protected: 55 protected:
56 unsigned int m_apiVersion;
57 fvec_t *m_ibuf; 56 fvec_t *m_ibuf;
58 fvec_t *m_pbuf; 57 fvec_t *m_pbuf;
59 smpl_t **m_tmpptrs; 58 smpl_t **m_tmpptrs;
60 float m_threshold; 59 float m_threshold;
61 size_t m_stepSize; 60 size_t m_stepSize;