implement VST midi-output
[ardour.git] / libs / ardour / ardour / vst_plugin.h
index 7ca973cbb70d896fc729cff010ea877f2af9f8ee..3450e2a480d22fc0b938590380574feb459865fe 100644 (file)
@@ -32,7 +32,7 @@ typedef struct _VSTState VSTState;
 namespace ARDOUR {
 
 /** Parent class for VST plugins of both Windows and Linux varieties */
-class VSTPlugin : public Plugin
+class LIBARDOUR_API VSTPlugin : public Plugin
 {
 public:
        VSTPlugin (AudioEngine &, Session &, VSTHandle *);
@@ -73,6 +73,7 @@ public:
        
        AEffect * plugin () const { return _plugin; }
        VSTState * state () const { return _state; }
+       MidiBuffer * midi_buffer () const { return _midi_out_buf; }
 
        int set_state (XMLNode const &, int);
 
@@ -94,6 +95,8 @@ protected:
        VSTHandle* _handle;
        VSTState*  _state;
        AEffect*   _plugin;
+
+       MidiBuffer* _midi_out_buf;
 };
 
 }