13
0

another lua convenience API

This commit is contained in:
Robin Gareus 2016-04-09 13:23:30 +02:00
parent 2ff63925c2
commit ed25eec79b
2 changed files with 12 additions and 0 deletions

View File

@ -43,6 +43,12 @@ namespace ARDOUR { namespace LuaAPI {
*/
int datatype_ctor_midi (lua_State *L);
/** Create a null processor shared pointer
*
* This is useful for Track:bounce() to indicate no processing.
*/
boost::shared_ptr<ARDOUR::Processor> nil_processor ();
/** create a new Lua Processor (Plugin)
*
* @param s Session Handle

View File

@ -61,6 +61,12 @@ ARDOUR::LuaAPI::datatype_ctor_midi (lua_State *L)
return 1;
}
boost::shared_ptr<Processor>
ARDOUR::LuaAPI::nil_processor ()
{
return boost::shared_ptr<Processor> ();
}
boost::shared_ptr<Processor>
ARDOUR::LuaAPI::new_luaproc (Session *s, const string& name)
{