From ed25eec79bec9113f56914401ff0e42276b72339 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 9 Apr 2016 13:23:30 +0200 Subject: another lua convenience API --- libs/ardour/ardour/lua_api.h | 6 ++++++ libs/ardour/lua_api.cc | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'libs') diff --git a/libs/ardour/ardour/lua_api.h b/libs/ardour/ardour/lua_api.h index 574ddd24a5..d93b73373d 100644 --- a/libs/ardour/ardour/lua_api.h +++ b/libs/ardour/ardour/lua_api.h @@ -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 nil_processor (); + /** create a new Lua Processor (Plugin) * * @param s Session Handle diff --git a/libs/ardour/lua_api.cc b/libs/ardour/lua_api.cc index 8a52a2ccb7..02a4de4658 100644 --- a/libs/ardour/lua_api.cc +++ b/libs/ardour/lua_api.cc @@ -61,6 +61,12 @@ ARDOUR::LuaAPI::datatype_ctor_midi (lua_State *L) return 1; } +boost::shared_ptr +ARDOUR::LuaAPI::nil_processor () +{ + return boost::shared_ptr (); +} + boost::shared_ptr ARDOUR::LuaAPI::new_luaproc (Session *s, const string& name) { -- cgit v1.2.3