13
0

Update BBT Lua bindings, add missing BBT_Argument

This commit is contained in:
Robin Gareus 2023-02-16 02:19:42 +01:00
parent ee64390c48
commit 92f5046ae6
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -704,7 +704,7 @@ LuaBindings::common (lua_State* L)
.endClass ()
.beginClass <Temporal::BBT_Time> ("BBT_TIME")
.addConstructor <void (*) (uint32_t, uint32_t, uint32_t)> ()
.addConstructor <void (*) (int32_t, int32_t, int32_t)> ()
.addData ("bars", &Temporal::BBT_Time::bars)
.addData ("beats", &Temporal::BBT_Time::beats)
.addData ("ticks", &Temporal::BBT_Time::ticks)
@ -716,6 +716,10 @@ LuaBindings::common (lua_State* L)
// .addStaticData ("ticks_per_beat", &Temporal::ticks_per_beat, false)
.endClass ()
.deriveClass <Temporal::BBT_Argument, Temporal::BBT_Time> ("BBT_Argument")
.addConstructor <void (*) (int32_t, int32_t, int32_t)> ()
.endClass ()
.beginClass <Temporal::BBT_Offset> ("BBT_Offset")
.addConstructor <void (*) (uint32_t, uint32_t, uint32_t)> ()
.addData ("bars", &Temporal::BBT_Offset::bars)