summaryrefslogtreecommitdiff
path: root/libs/ardour/globals.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-09-10 03:06:21 +0200
committerRobin Gareus <robin@gareus.org>2019-09-10 03:06:21 +0200
commit38b36d2ea5b7aba5a10ff25891d4df5c6ac51a68 (patch)
treef4364467c9813cdb4f8d761624e10db13857226a /libs/ardour/globals.cc
parent68c13940e3b24e89bed39efc4e741298cc6d2637 (diff)
Engage thread-safe fftw planner in libardour
This way initialization happens constently, and independent from the GUI, for session-utils, lua, headless..
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r--libs/ardour/globals.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc
index 7233370a11..fa7467abe0 100644
--- a/libs/ardour/globals.cc
+++ b/libs/ardour/globals.cc
@@ -53,6 +53,10 @@
#include <windows.h> // for LARGE_INTEGER
#endif
+#ifdef HAVE_FFTW35F
+#include <fftw3.h>
+#endif
+
#ifdef WINDOWS_VST_SUPPORT
#include <fst.h>
#endif
@@ -452,6 +456,10 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization, const char* localedir
}
#endif
+#ifdef HAVE_FFTW35F
+ fftwf_make_planner_thread_safe ();
+#endif
+
if (!PBD::init()) return false;
#if ENABLE_NLS