comparison vamp-sdk/PluginBase.h @ 167:31eda4b11f2b

* First bit of Vamp v2 work -- add an optional duration to features in a backward compatible way. Warning: this code is unstable and experimental and may change significantly in the coming weeks.
author cannam
date Thu, 17 Jul 2008 08:52:26 +0000
parents c1dce0b033cb
children 5ee166dccfff
comparison
equal deleted inserted replaced
166:120f88880347 167:31eda4b11f2b
62 virtual ~PluginBase() { } 62 virtual ~PluginBase() { }
63 63
64 /** 64 /**
65 * Get the Vamp API compatibility level of the plugin. 65 * Get the Vamp API compatibility level of the plugin.
66 */ 66 */
67 virtual unsigned int getVampApiVersion() const { return 1; } 67 virtual unsigned int getVampApiVersion() const { return 2; }
68 68
69 /** 69 /**
70 * Get the computer-usable name of the plugin. This should be 70 * Get the computer-usable name of the plugin. This should be
71 * reasonably short and contain no whitespace or punctuation 71 * reasonably short and contain no whitespace or punctuation
72 * characters. It may only contain the characters [a-zA-Z0-9_-]. 72 * characters. It may only contain the characters [a-zA-Z0-9_-].
188 * user in preference to the values themselves. The user may 188 * user in preference to the values themselves. The user may
189 * never see the actual numeric values unless they are also 189 * never see the actual numeric values unless they are also
190 * encoded in the names. 190 * encoded in the names.
191 */ 191 */
192 std::vector<std::string> valueNames; 192 std::vector<std::string> valueNames;
193
194 ParameterDescriptor() : // the defaults are invalid: you must set them
195 minValue(0), maxValue(0), defaultValue(0), isQuantized(false) { }
193 }; 196 };
194 197
195 typedef std::vector<ParameterDescriptor> ParameterList; 198 typedef std::vector<ParameterDescriptor> ParameterList;
196 199
197 /** 200 /**