allow user tweaking of everything that might have inherent latency; add GUI for track...
[ardour.git] / libs / ardour / ardour / vst_plugin.h
index ee8e6e986b806e3e8bd7af83a62bd2e0c5890ddc..1622df0c1aeef3922c4482adc508a448fa5c7565 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __ardour_vst_plugin_h__
 #include <string>
 #include <dlfcn.h>
 
-#include <midi++/controllable.h>
 #include <sigc++/signal.h>
-
+#include <pbd/stateful.h> 
 #include <jack/types.h>
-#include <ardour/stateful.h>
-#include <ardour/plugin_state.h>
 #include <ardour/plugin.h>
 
 using std::string;
@@ -66,7 +62,7 @@ class VSTPlugin : public ARDOUR::Plugin
        const char * maker() const;
        uint32_t parameter_count() const;
        float default_value (uint32_t port);
-       jack_nframes_t latency() const;
+       nframes_t signal_latency() const;
        void set_parameter (uint32_t port, float val);
        float get_parameter (uint32_t port) const;
        int get_parameter_descriptor (uint32_t which, ParameterDescriptor&) const;
@@ -74,8 +70,8 @@ class VSTPlugin : public ARDOUR::Plugin
        uint32_t nth_parameter (uint32_t port, bool& ok) const;
        void activate ();
        void deactivate ();
-       void set_block_size (jack_nframes_t nframes);
-       int connect_and_run (vector<Sample*>& bufs, uint32_t maxbuf, int32_t& in, int32_t& out, jack_nframes_t nframes, jack_nframes_t offset);
+       void set_block_size (nframes_t nframes);
+       int connect_and_run (BufferSet&, uint32_t& in, uint32_t& out, nframes_t nframes, nframes_t offset);
        void store_state (ARDOUR::PluginState&);
        void restore_state (ARDOUR::PluginState&);
        string describe_parameter (uint32_t);
@@ -106,6 +102,17 @@ class VSTPlugin : public ARDOUR::Plugin
        bool        been_resumed;
 };
 
-}
+class VSTPluginInfo : public PluginInfo
+{
+  public:
+       VSTPluginInfo () {}
+       ~VSTPluginInfo () {}
+       
+       PluginPtr load (Session& session);
+};
+
+typedef boost::shared_ptr<VSTPluginInfo> VSTPluginInfoPtr;
+
+} // namespace ARDOUR
 
 #endif /* __ardour_vst_plugin_h__ */