Fix LV2 compilation.
git-svn-id: svn://localhost/ardour2/branches/3.0@5030 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1ae39840b3
commit
8491953e20
@ -38,7 +38,7 @@
|
||||
#include "ardour/plugin.h"
|
||||
#include "ardour/plugin_insert.h"
|
||||
#include "ardour/ladspa_plugin.h"
|
||||
#ifdef HAVE_LV2
|
||||
#ifdef HAVE_SLV2
|
||||
#include "ardour/lv2_plugin.h"
|
||||
#endif
|
||||
|
||||
@ -404,7 +404,7 @@ 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
|
||||
#ifdef HAVE_SLV2
|
||||
boost::shared_ptr<LV2Plugin> lv2p;
|
||||
#endif
|
||||
if ((lp = boost::dynamic_pointer_cast<LadspaPlugin>(plugin)) != 0) {
|
||||
@ -429,7 +429,7 @@ GenericPluginUI::build_control_ui (guint32 port_index, boost::shared_ptr<Automat
|
||||
return control_ui;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LV2
|
||||
#ifdef HAVE_SLV2
|
||||
} else if ((lv2p = boost::dynamic_pointer_cast<LV2Plugin>(plugin)) != 0) {
|
||||
|
||||
SLV2Port port = lv2p->slv2_port(port_index);
|
||||
@ -794,7 +794,7 @@ GenericPluginUI::setup_scale_values(guint32 port_index, ControlUI* cui)
|
||||
{
|
||||
vector<string> enums;
|
||||
boost::shared_ptr<LadspaPlugin> lp;
|
||||
#ifdef HAVE_LV2
|
||||
#ifdef HAVE_SLV2
|
||||
boost::shared_ptr<LV2Plugin> lv2p;
|
||||
#endif
|
||||
|
||||
@ -816,7 +816,7 @@ GenericPluginUI::setup_scale_values(guint32 port_index, ControlUI* cui)
|
||||
lrdf_free_setting_values(defaults);
|
||||
}
|
||||
|
||||
#ifdef HAVE_LV2
|
||||
#ifdef HAVE_SLV2
|
||||
} else if ((lv2p = boost::dynamic_pointer_cast<LV2Plugin>(plugin)) != 0) {
|
||||
|
||||
SLV2Port port = lv2p->slv2_port(port_index);
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include "ardour/types.h"
|
||||
#include "plugin_ui.h"
|
||||
|
||||
#ifdef HAVE_LV2
|
||||
#ifdef HAVE_SLV2
|
||||
|
||||
namespace ARDOUR {
|
||||
class PluginInsert;
|
||||
@ -75,7 +75,8 @@ class LV2PluginUI : public PlugUIBase, public Gtk::VBox
|
||||
void output_update();
|
||||
bool is_update_wanted(uint32_t index);
|
||||
};
|
||||
#endif // HAVE_LV2
|
||||
|
||||
#endif // HAVE_SLV2
|
||||
|
||||
#endif /* __ardour_lv2_plugin_ui_h__ */
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
#ifdef VST_SUPPORT
|
||||
#include "ardour/vst_plugin.h"
|
||||
#endif
|
||||
#ifdef HAVE_LV2
|
||||
#ifdef HAVE_SLV2
|
||||
#include "ardour/lv2_plugin.h"
|
||||
#include "lv2_plugin_ui.h"
|
||||
#endif
|
||||
@ -289,7 +289,7 @@ PluginUIWindow::app_activated (bool yn)
|
||||
bool
|
||||
PluginUIWindow::create_lv2_editor(boost::shared_ptr<PluginInsert> insert)
|
||||
{
|
||||
#ifndef HAVE_LV2
|
||||
#ifndef HAVE_SLV2
|
||||
return false;
|
||||
#else
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user