Add a dedicated export method to MidiRegion
[ardour.git] / libs / ardour / luaproc.cc
index b48c3100fbdaa2f78816e56edd62bf5c4af8c782..8ce1c75a198ff9336cae4538374542e88a593f17 100644 (file)
@@ -37,7 +37,7 @@
 
 #include "LuaBridge/LuaBridge.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace PBD;
@@ -47,7 +47,13 @@ LuaProc::LuaProc (AudioEngine& engine,
                   const std::string &script)
        : Plugin (engine, session)
        , _mempool ("LuaProc", 2097152)
+#ifdef USE_TLSF
+       , lua (lua_newstate (&PBD::TLSF::lalloc, &_mempool))
+#elif defined USE_MALLOC
+       , lua ()
+#else
        , lua (lua_newstate (&PBD::ReallocPool::lalloc, &_mempool))
+#endif
        , _lua_dsp (0)
        , _script (script)
        , _lua_does_channelmapping (false)
@@ -71,7 +77,13 @@ LuaProc::LuaProc (AudioEngine& engine,
 LuaProc::LuaProc (const LuaProc &other)
        : Plugin (other)
        , _mempool ("LuaProc", 2097152)
+#ifdef USE_TLSF
+       , lua (lua_newstate (&PBD::TLSF::lalloc, &_mempool))
+#elif defined USE_MALLOC
+       , lua ()
+#else
        , lua (lua_newstate (&PBD::ReallocPool::lalloc, &_mempool))
+#endif
        , _lua_dsp (0)
        , _script (other.script ())
        , _lua_does_channelmapping (false)