Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/Plugin.h @ 35:154f86cb8c99
* Add an implementation of Dan Barry's percussion onset detector
author | cannam |
---|---|
date | Wed, 20 Sep 2006 13:51:22 +0000 |
parents | 44ec6c633113 |
children | be8fdfe25693 |
comparison
equal
deleted
inserted
replaced
34:cfba7059eccf | 35:154f86cb8c99 |
---|---|
87 * 5. Plugin is properly initialised with a call to initialise. This | 87 * 5. Plugin is properly initialised with a call to initialise. This |
88 * fixes the step size, block size, and number of channels, as well as | 88 * fixes the step size, block size, and number of channels, as well as |
89 * all of the parameter and program settings. If the values passed in | 89 * all of the parameter and program settings. If the values passed in |
90 * to initialise do not match the plugin's advertised preferred values | 90 * to initialise do not match the plugin's advertised preferred values |
91 * from step 4, the plugin may refuse to initialise and return false | 91 * from step 4, the plugin may refuse to initialise and return false |
92 * (although if possible it should accept the new values). | 92 * (although if possible it should accept the new values). Any |
93 * computationally expensive setup code should take place here. | |
93 * | 94 * |
94 * 6. Host finally checks the number of values per output (which may | 95 * 6. Host finally checks the number of values per output (which may |
95 * vary depending on the number of channels, step size and block size | 96 * vary depending on the number of channels, step size and block size |
96 * as well as the parameter values). | 97 * as well as the parameter values). |
97 * | 98 * |
108 * does not mean it can change the parameters, which are fixed from | 109 * does not mean it can change the parameters, which are fixed from |
109 * initialise until destruction.) | 110 * initialise until destruction.) |
110 * | 111 * |
111 * A plugin does not need to handle the case where setParameter or | 112 * A plugin does not need to handle the case where setParameter or |
112 * selectProgram is called after initialise has been called. It's the | 113 * selectProgram is called after initialise has been called. It's the |
113 * host's responsibility not to do that. | 114 * host's responsibility not to do that. Similarly, the plugin may |
115 * safely assume that initialise is called no more than once. | |
114 */ | 116 */ |
115 | 117 |
116 class Plugin : public PluginBase | 118 class Plugin : public PluginBase |
117 { | 119 { |
118 public: | 120 public: |