summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-04-09 13:23:30 +0200
committerRobin Gareus <robin@gareus.org>2016-04-09 15:45:30 +0200
commited25eec79bec9113f56914401ff0e42276b72339 (patch)
tree8193029313d5ca338eab552df77dd2b78dec2471
parent2ff63925c218ca270380b4eba0c0e114d74be2f1 (diff)
another lua convenience API
-rw-r--r--libs/ardour/ardour/lua_api.h6
-rw-r--r--libs/ardour/lua_api.cc6
2 files changed, 12 insertions, 0 deletions
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<ARDOUR::Processor> 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
@@ -62,6 +62,12 @@ ARDOUR::LuaAPI::datatype_ctor_midi (lua_State *L)
}
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)
{
if (!s) {