# HG changeset patch # User cannam # Date 1147278639 0 # Node ID 44ec6c633113a527be42da3690a781f6d43bfd53 # Parent c29eccb892f1f5fff10f298143d69a1a5439d675 * Permit plugins to vary the number of values per output based on the number of channels, step size, and block size passed to initialise(). diff -r c29eccb892f1 -r 44ec6c633113 vamp-sdk/Plugin.h --- a/vamp-sdk/Plugin.h Wed May 10 11:44:40 2006 +0000 +++ b/vamp-sdk/Plugin.h Wed May 10 16:30:39 2006 +0000 @@ -79,12 +79,10 @@ * When a program is set, the parameter values may change and the host * will re-query them to check. * - * 4. Host queries the preferred step size, block size, number of - * channels, and the number of values per feature for the plugin's - * outputs. These may all vary depending on the parameter values. + * 4. Host queries the preferred step size, block size and number of + * channels. These may all vary depending on the parameter values. * (Note however that you cannot make the number of distinct outputs - * dependent on parameter values; nor can you make any of these depend - * on the number of input channels.) + * dependent on parameter values.) * * 5. Plugin is properly initialised with a call to initialise. This * fixes the step size, block size, and number of channels, as well as @@ -93,15 +91,19 @@ * from step 4, the plugin may refuse to initialise and return false * (although if possible it should accept the new values). * - * 6. Host will repeatedly call the process method to pass in blocks + * 6. Host finally checks the number of values per output (which may + * vary depending on the number of channels, step size and block size + * as well as the parameter values). + * + * 7. Host will repeatedly call the process method to pass in blocks * of input data. This method may return features extracted from that * data (if the plugin is causal). * - * 7. Host will call getRemainingFeatures exactly once, after all the + * 8. Host will call getRemainingFeatures exactly once, after all the * input data has been processed. This may return any non-causal or * leftover features. * - * 8. At any point after initialise was called, the host may + * 9. At any point after initialise was called, the host may * optionally call the reset method and restart processing. (This * does not mean it can change the parameters, which are fixed from * initialise until destruction.)