Add a dedicated export method to MidiRegion
[ardour.git] / libs / ardour / luaproc.cc
index c5bc8222565f664e6e2338c4580aa0bc1cf37038..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)
@@ -599,7 +611,6 @@ LuaProc::can_support_io_configuration (const ChanCount& in, ChanCount& out, Chan
        if (exact_match) {
                out.set (DataType::MIDI, midi_out);
                out.set (DataType::AUDIO, preferred_out);
-               printf("EXACT MATCH.. %d %d\n", preferred_out, audio_out);
        } else {
                out.set (DataType::MIDI, midi_out);
                out.set (DataType::AUDIO, audio_out);