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