X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Flv2_plugin_ui.h;h=0ddc86b217f73d4e8332bfa8c1fb6c6201cc100f;hb=73a6b8ef25bb90ad6c66b25b17da5962a38291d2;hp=5946d8bd777ab0f1ef29273b3719fe9132605b0d;hpb=c86210a9d5bdb7b36ad58552a1f99f53d48781b3;p=ardour.git diff --git a/gtk2_ardour/lv2_plugin_ui.h b/gtk2_ardour/lv2_plugin_ui.h index 5946d8bd77..0ddc86b217 100644 --- a/gtk2_ardour/lv2_plugin_ui.h +++ b/gtk2_ardour/lv2_plugin_ui.h @@ -29,10 +29,10 @@ #include #include -#include +#include "ardour/types.h" #include "plugin_ui.h" -#ifdef HAVE_LV2 +#ifdef HAVE_SLV2 namespace ARDOUR { class PluginInsert; @@ -47,13 +47,15 @@ class LV2PluginUI : public PlugUIBase, public Gtk::VBox gint get_preferred_height (); gint get_preferred_width (); - bool start_updating(GdkEventAny*) {return false;} - bool stop_updating(GdkEventAny*) {return false;} + bool start_updating(GdkEventAny*); + bool stop_updating(GdkEventAny*); int package (Gtk::Window&); private: boost::shared_ptr _lv2; + std::vector _output_ports; + sigc::connection _screen_update_connection; Gtk::Widget* _gui_widget; SLV2UIInstance _inst; @@ -67,10 +69,14 @@ class LV2PluginUI : public PlugUIBase, public Gtk::VBox const void* buffer); void parameter_changed(uint32_t, float); + void parameter_update(uint32_t, float); bool configure_handler (GdkEventConfigure*); void save_plugin_setting (); + void output_update(); + bool is_update_wanted(uint32_t index); }; -#endif // HAVE_LV2 + +#endif // HAVE_SLV2 #endif /* __ardour_lv2_plugin_ui_h__ */