comparison VampTestPlugin.h @ 20:cfff2b6ff0fd

Add timestamp output and frequency-domain version
author Chris Cannam
date Wed, 14 Jan 2015 10:55:32 +0000
parents 014cce47e998
children c5c40824800a
comparison
equal deleted inserted replaced
19:534b001d8e8f 20:cfff2b6ff0fd
8 8
9 9
10 class VampTestPlugin : public Vamp::Plugin 10 class VampTestPlugin : public Vamp::Plugin
11 { 11 {
12 public: 12 public:
13 VampTestPlugin(float inputSampleRate); 13 VampTestPlugin(float inputSampleRate, bool freq);
14 virtual ~VampTestPlugin(); 14 virtual ~VampTestPlugin();
15 15
16 string getIdentifier() const; 16 string getIdentifier() const;
17 string getName() const; 17 string getName() const;
18 string getDescription() const; 18 string getDescription() const;
43 Vamp::RealTime timestamp); 43 Vamp::RealTime timestamp);
44 44
45 FeatureSet getRemainingFeatures(); 45 FeatureSet getRemainingFeatures();
46 46
47 protected: 47 protected:
48 bool m_frequencyDomain;
48 bool m_produceOutput; 49 bool m_produceOutput;
49 int m_n; 50 int m_n;
50 std::vector<Vamp::RealTime> m_instants; 51 std::vector<Vamp::RealTime> m_instants;
51 int m_channels; 52 int m_channels;
52 int m_stepSize; 53 int m_stepSize;