Update recorded MIDI regions as notes arrive. Fixes one cause of infinite note-lengt...
[ardour.git] / libs / ardour / ardour / lv2_plugin.h
index de42512cfe0395ea12fc2e8fce681836aad7de2b..329af1151fbef3449a48f8fdf27bb6273439d432 100644 (file)
@@ -26,7 +26,6 @@
 #include <string>
 #include <dlfcn.h>
 
-#include <sigc++/signal.h>
 
 #include "pbd/stateful.h"
 
@@ -95,7 +94,7 @@ class LV2Plugin : public ARDOUR::Plugin
                _instance = NULL;
        }
 
-       void set_block_size (nframes_t /*nframes*/) {}
+       int  set_block_size (nframes_t /*nframes*/) { return 0; }
 
        int connect_and_run (BufferSet& bufs,
                        ChanMapping in, ChanMapping out,
@@ -115,9 +114,9 @@ class LV2Plugin : public ARDOUR::Plugin
        static uint32_t midi_event_type() { return _midi_event_type; }
 
        XMLNode& get_state();
-       int      set_state(const XMLNode& node);
+       int      set_state(const XMLNode& node, int version);
        bool     save_preset(std::string uri);
-       bool     load_preset(const std::string uri);
+       bool     load_preset(const std::string& uri);
        virtual std::vector<Plugin::PresetRecord> get_presets();
 
        bool has_editor() const;
@@ -176,7 +175,7 @@ struct LV2World {
        SLV2Value srate;
        SLV2Value gtk_gui;
        SLV2Value external_gui;
-        SLV2Value logarithmic;
+       SLV2Value logarithmic;
 };
 
 
@@ -184,7 +183,7 @@ class LV2PluginInfo : public PluginInfo {
 public:
        LV2PluginInfo (void* slv2_world, void* slv2_plugin);;
        ~LV2PluginInfo ();;
-       static PluginInfoList discover (void* slv2_world);
+       static PluginInfoList* discover (void* slv2_world);
 
        PluginPtr load (Session& session);