summaryrefslogtreecommitdiff
path: root/libs/ardour/globals.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-09-20 20:29:47 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-09-20 20:29:47 +0000
commitd4433b9ab384196bb5b8876890863d7939339ee2 (patch)
tree669f503a04696c7869a14d5c5f6239024ba43e76 /libs/ardour/globals.cc
parente09e0035a62ce9f8876b6204682bbb3db474d477 (diff)
(native) Linux VST support from LinuxDSP
git-svn-id: svn://localhost/ardour2/branches/3.0@10101 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r--libs/ardour/globals.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc
index d8f06d9a8a..48a7dc0da0 100644
--- a/libs/ardour/globals.cc
+++ b/libs/ardour/globals.cc
@@ -33,6 +33,10 @@
#include <fst.h>
#endif
+#ifdef LXVST_SUPPORT
+#include "ardour/vstfx.h"
+#endif
+
#ifdef HAVE_AUDIOUNITS
#include "ardour/audio_unit.h"
#endif
@@ -290,6 +294,9 @@ ARDOUR::init (bool use_vst, bool try_optimization)
}
Config->set_use_vst (use_vst);
+#ifdef LXVST_SUPPORT
+ Config->set_use_lxvst(true);
+#endif
Profile = new RuntimeProfile;
@@ -300,6 +307,12 @@ ARDOUR::init (bool use_vst, bool try_optimization)
}
#endif
+#ifdef LXVST_SUPPORT
+ if (Config->get_use_lxvst() && vstfx_init (0)) {
+ return -1;
+ }
+#endif
+
#ifdef HAVE_AUDIOUNITS
AUPluginInfo::load_cached_info ();
#endif
@@ -372,6 +385,10 @@ ARDOUR::cleanup ()
#ifdef VST_SUPPORT
fst_exit ();
#endif
+
+#ifdef LXVST_SUPPOR
+ vstfx_exit();
+#endif
return 0;
}