Add missing Lua bindings

This commit is contained in:
Robin Gareus
2024-12-02 00:01:46 +01:00
parent 388931293d
commit 99a4f37af4

View File

@@ -2424,6 +2424,14 @@ LuaBindings::common (lua_State* L)
// TODO add uint32_t cast, add operator== !=
.endClass()
/* libardour class-enums */
.beginClass <AnyTime> ("AnyTime")
.addConstructor <void (*) (std::string)> ()
.addFunction ("str", &AnyTime::str)
.addFunction ("not_zero", &AnyTime::not_zero)
//.addData ("type", &AnyTime::type)
.endClass()
/* libardour enums */
.beginNamespace ("PluginType")
.addFunction ("name", &PluginManager::plugin_type_name)
@@ -2540,6 +2548,12 @@ LuaBindings::common (lua_State* L)
.addConst ("MonitoringCue", ARDOUR::MonitorState(MonitoringCue))
.endNamespace ()
.beginNamespace ("FastWindOp")
.addConst ("FastWindOff", ARDOUR::FastWindOp(FastWindOff))
.addConst ("FastWindVarispeed", ARDOUR::FastWindOp(FastWindVarispeed))
.addConst ("FastWindLocate", ARDOUR::FastWindOp(FastWindLocate))
.endNamespace ()
.beginNamespace ("MutePoint")
.addConst ("PreFader", ARDOUR::MuteMaster::MutePoint(MuteMaster::PreFader))
.addConst ("PostFader", ARDOUR::MuteMaster::MutePoint(MuteMaster::PostFader))