Mercurial > hg > vamp-plugin-sdk
diff 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 |
line wrap: on
line diff
--- a/vamp-sdk/PluginBase.h Wed Jul 09 11:00:16 2008 +0000 +++ b/vamp-sdk/PluginBase.h Thu Jul 17 08:52:26 2008 +0000 @@ -64,7 +64,7 @@ /** * Get the Vamp API compatibility level of the plugin. */ - virtual unsigned int getVampApiVersion() const { return 1; } + virtual unsigned int getVampApiVersion() const { return 2; } /** * Get the computer-usable name of the plugin. This should be @@ -190,6 +190,9 @@ * encoded in the names. */ std::vector<std::string> valueNames; + + ParameterDescriptor() : // the defaults are invalid: you must set them + minValue(0), maxValue(0), defaultValue(0), isQuantized(false) { } }; typedef std::vector<ParameterDescriptor> ParameterList;