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