From ef1e20f6a281f4e6a030b92382c2e3dc5809fe3c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 7 Jul 2016 15:36:13 +0200 Subject: some more lua-bindings * allow C memory allocation with lua-lifetime * expose some ChanMapping methods --- libs/ardour/luabindings.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/ardour/luabindings.cc') diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index 1ff2f39987..dce33dd95c 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -428,6 +428,9 @@ LuaBindings::common (lua_State* L) .addVoidConstructor () .addFunction ("get", static_cast(&ChanMapping::get)) .addFunction ("set", &ChanMapping::set) + .addFunction ("count", &ChanMapping::count) + .addFunction ("n_total", &ChanMapping::n_total) + .addFunction ("is_monotonic", &ChanMapping::is_monotonic) .addConst ("Invalid", 4294967295U) // UINT32_MAX .endClass () @@ -1365,6 +1368,7 @@ LuaBindings::dsp (lua_State* L) .endNamespace () .beginClass ("DspShm") + .addConstructor () .addFunction ("allocate", &DSP::DspShm::allocate) .addFunction ("clear", &DSP::DspShm::clear) .addFunction ("to_float", &DSP::DspShm::to_float) -- cgit v1.2.3