comparison Test.h @ 1:d7ef749300ed

* Add tests for extremes of input audio
author cannam
date Thu, 12 Mar 2009 17:09:53 +0000
parents f89128a316e7
children 0f65bb22172b
comparison
equal deleted inserted replaced
0:f89128a316e7 1:d7ef749300ed
79 Test(); 79 Test();
80 80
81 // may throw FailedToLoadPlugin 81 // may throw FailedToLoadPlugin
82 Vamp::Plugin *load(std::string key, float rate = 44100); 82 Vamp::Plugin *load(std::string key, float rate = 44100);
83 83
84 float **createBlock(size_t channels, size_t blocksize);
85 void destroyBlock(float **blocks, size_t channels);
86
87 bool initDefaults(Vamp::Plugin *, size_t &channels,
88 size_t &step, size_t &block, Results &r);
89
84 void appendFeatures(Vamp::Plugin::FeatureSet &a, 90 void appendFeatures(Vamp::Plugin::FeatureSet &a,
85 const Vamp::Plugin::FeatureSet &b); 91 const Vamp::Plugin::FeatureSet &b);
92
93 bool allFeaturesValid(const Vamp::Plugin::FeatureSet &); // i.e. no NaN/inf
86 }; 94 };
87 95
88 extern bool operator==(const Vamp::Plugin::FeatureSet &a, 96 extern bool operator==(const Vamp::Plugin::FeatureSet &a,
89 const Vamp::Plugin::FeatureSet &b); 97 const Vamp::Plugin::FeatureSet &b);
90 extern bool operator==(const Vamp::Plugin::FeatureList &a, 98 extern bool operator==(const Vamp::Plugin::FeatureList &a,