X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Flv2_plugin.h;h=329af1151fbef3449a48f8fdf27bb6273439d432;hb=ba0458cf1f6c69366e89631d8fff916ad183d768;hp=de42512cfe0395ea12fc2e8fce681836aad7de2b;hpb=bb9cc45cd22af67ac275a5e73accbe14fee664d8;p=ardour.git diff --git a/libs/ardour/ardour/lv2_plugin.h b/libs/ardour/ardour/lv2_plugin.h index de42512cfe..329af1151f 100644 --- a/libs/ardour/ardour/lv2_plugin.h +++ b/libs/ardour/ardour/lv2_plugin.h @@ -26,7 +26,6 @@ #include #include -#include #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 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);