matthiasm@0: matthiasm@0: // This is a skeleton file for use in creating your own plugin matthiasm@0: // libraries. Replace MyPlugin and myPlugin throughout with the name matthiasm@0: // of your first plugin class, and fill in the gaps as appropriate. matthiasm@0: matthiasm@0: matthiasm@0: #include matthiasm@0: #include matthiasm@0: matthiasm@0: #include "NNLSChroma.h" matthiasm@0: matthiasm@0: matthiasm@0: // Declare one static adapter here for each plugin class in this library. matthiasm@0: matthiasm@0: static Vamp::PluginAdapter myPluginAdapter; matthiasm@0: matthiasm@0: matthiasm@0: // This is the entry-point for the library, and the only function that matthiasm@0: // needs to be publicly exported. matthiasm@0: matthiasm@0: const VampPluginDescriptor * matthiasm@0: vampGetPluginDescriptor(unsigned int version, unsigned int index) matthiasm@0: { matthiasm@0: if (version < 1) return 0; matthiasm@0: matthiasm@0: // Return a different plugin adaptor's descriptor for each index, matthiasm@0: // and return 0 for the first index after you run out of plugins. matthiasm@0: // (That's how the host finds out how many plugins are in this matthiasm@0: // library.) matthiasm@0: matthiasm@0: switch (index) { matthiasm@0: case 0: return myPluginAdapter.getDescriptor(); matthiasm@0: default: return 0; matthiasm@0: } matthiasm@0: } matthiasm@0: matthiasm@0: