diff plugin/RealTimePluginFactory.h @ 60:3086ff194ea0

* More structural work on feature extraction plugin C <-> C++ adapter * Allow use of LADSPA/DSSI plugins with control outputs as feature extraction plugins (DSSI with MIDI output still to come) * Reorder labels on spectrogram status box * Minor tweaks in doc etc.
author Chris Cannam
date Mon, 27 Mar 2006 15:03:02 +0000
parents d397ea0a79f5
children 5ae5885d6ce3
line wrap: on
line diff
--- a/plugin/RealTimePluginFactory.h	Fri Mar 24 18:15:50 2006 +0000
+++ b/plugin/RealTimePluginFactory.h	Mon Mar 27 15:03:02 2006 +0000
@@ -27,6 +27,21 @@
 
 class RealTimePluginInstance;
 
+class RealTimePluginDescriptor
+{
+public:
+    std::string name;
+    std::string label;
+    std::string maker;
+    std::string copyright;
+    std::string category;
+    bool isSynth;
+    unsigned int parameterCount;
+    unsigned int audioInputPortCount;
+    unsigned int controlOutputPortCount;
+    std::vector<std::string> controlOutputPortNames;
+};
+
 class RealTimePluginFactory
 {
 public:
@@ -57,6 +72,11 @@
     virtual void enumeratePlugins(std::vector<QString> &list) = 0;
 
     /**
+     * Get some basic information about a plugin (rapidly).
+     */
+    virtual const RealTimePluginDescriptor *getPluginDescriptor(QString identifier) const = 0;
+
+    /**
      * Instantiate a plugin.
      */
     virtual RealTimePluginInstance *instantiatePlugin(QString identifier,