Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/Plugin.h @ 53:74822738965b
* Some doc updates
author | cannam |
---|---|
date | Wed, 21 Mar 2007 14:15:25 +0000 |
parents | aa64a46320d4 |
children | fa79c4ec847d 9d3272c7db60 |
comparison
equal
deleted
inserted
replaced
52:d3995d2b5e08 | 53:74822738965b |
---|---|
53 * In most cases, the input will be audio and the output will be a | 53 * In most cases, the input will be audio and the output will be a |
54 * stream of derived data at a lower sampling resolution than the | 54 * stream of derived data at a lower sampling resolution than the |
55 * input. | 55 * input. |
56 * | 56 * |
57 * Note that this class inherits several abstract methods from | 57 * Note that this class inherits several abstract methods from |
58 * PluginBase, that must be implemented by the subclass. | 58 * PluginBase. These must be implemented by the subclass. |
59 */ | 59 * |
60 | 60 * |
61 /** | 61 * PLUGIN LIFECYCLE |
62 * Plugin Lifecycle | |
63 * ================ | |
64 * | 62 * |
65 * Feature extraction plugins are managed differently from real-time | 63 * Feature extraction plugins are managed differently from real-time |
66 * plugins (such as VST effects). The main difference is that the | 64 * plugins (such as VST effects). The main difference is that the |
67 * parameters for a feature extraction plugin are configured before | 65 * parameters for a feature extraction plugin are configured before |
68 * the plugin is used, and do not change during use. | 66 * the plugin is used, and do not change during use. |
377 * After all blocks have been processed, calculate and return any | 375 * After all blocks have been processed, calculate and return any |
378 * remaining features derived from the complete input. | 376 * remaining features derived from the complete input. |
379 */ | 377 */ |
380 virtual FeatureSet getRemainingFeatures() = 0; | 378 virtual FeatureSet getRemainingFeatures() = 0; |
381 | 379 |
380 /** | |
381 * Used to distinguish between Vamp::Plugin and other potential | |
382 * sibling subclasses of PluginBase. Do not implement this | |
383 * function in your subclass. | |
384 */ | |
382 virtual std::string getType() const { return "Feature Extraction Plugin"; } | 385 virtual std::string getType() const { return "Feature Extraction Plugin"; } |
383 | 386 |
384 protected: | 387 protected: |
385 Plugin(float inputSampleRate) : | 388 Plugin(float inputSampleRate) : |
386 m_inputSampleRate(inputSampleRate) { } | 389 m_inputSampleRate(inputSampleRate) { } |