diff options
author | David Robillard <d@drobilla.net> | 2008-02-02 17:22:04 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-02 17:22:04 +0000 |
commit | 80c3677c837cc9eb432df3d65a34aba543fa7258 (patch) | |
tree | ca23bb7e5bff6c35c151d73221002a9ce3abfe1a /gtk2_ardour/generic_pluginui.cc | |
parent | 9f63ab9931e6478472853bdda58da47ea29ac125 (diff) |
Merge with 2.0-ongoing R2988
git-svn-id: svn://localhost/ardour2/branches/3.0@2991 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/generic_pluginui.cc')
-rw-r--r-- | gtk2_ardour/generic_pluginui.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc index ed185c33bc..6e3119b373 100644 --- a/gtk2_ardour/generic_pluginui.cc +++ b/gtk2_ardour/generic_pluginui.cc @@ -38,7 +38,9 @@ #include <ardour/plugin.h> #include <ardour/plugin_insert.h> #include <ardour/ladspa_plugin.h> +#ifdef HAVE_LV2 #include <ardour/lv2_plugin.h> +#endif #include <lrdf.h> @@ -385,8 +387,9 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat if (plugin->parameter_is_input (port_index)) { boost::shared_ptr<LadspaPlugin> lp; +#ifdef HAVE_LV2 boost::shared_ptr<LV2Plugin> lv2p; - +#endif if ((lp = boost::dynamic_pointer_cast<LadspaPlugin>(plugin)) != 0) { // FIXME: not all plugins have a numeric unique ID @@ -409,6 +412,7 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat return control_ui; } +#ifdef HAVE_LV2 } else if ((lv2p = boost::dynamic_pointer_cast<LV2Plugin>(plugin)) != 0) { SLV2Port port = lv2p->slv2_port(port_index); @@ -428,6 +432,7 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat slv2_scale_points_free(points); return control_ui; } +#endif } if (desc.toggled) { @@ -757,7 +762,9 @@ GenericPluginUI::setup_scale_values(guint32 port_index, ControlUI* cui) { vector<string> enums; boost::shared_ptr<LadspaPlugin> lp; +#ifdef HAVE_LV2 boost::shared_ptr<LV2Plugin> lv2p; +#endif if ((lp = boost::dynamic_pointer_cast<LadspaPlugin>(plugin)) != 0) { // all LADPSA plugins have a numeric unique ID @@ -777,6 +784,7 @@ GenericPluginUI::setup_scale_values(guint32 port_index, ControlUI* cui) lrdf_free_setting_values(defaults); } +#ifdef HAVE_LV2 } else if ((lv2p = boost::dynamic_pointer_cast<LV2Plugin>(plugin)) != 0) { SLV2Port port = lv2p->slv2_port(port_index); @@ -797,6 +805,7 @@ GenericPluginUI::setup_scale_values(guint32 port_index, ControlUI* cui) } slv2_scale_points_free(points); +#endif } |