13
0

Lua bindings for locations and locate disposition

This commit is contained in:
Robin Gareus 2020-01-31 01:45:07 +01:00
parent 44e55c501e
commit d14d396967
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -843,6 +843,7 @@ LuaBindings::common (lua_State* L)
.addFunction ("length", &Location::length)
.addFunction ("set_start", &Location::set_start)
.addFunction ("set_end", &Location::set_end)
.addFunction ("set", &Location::set)
.addFunction ("set_length", &Location::set)
.addFunction ("set_name", &Location::set_name)
.addFunction ("move_to", &Location::move_to)
@ -2015,6 +2016,12 @@ LuaBindings::common (lua_State* L)
.addConst ("TRS_UI", ARDOUR::TransportRequestSource(TRS_UI))
.endNamespace ()
.beginNamespace ("LocateTransportDisposition")
.addConst ("MustRoll", ARDOUR::LocateTransportDisposition(MustRoll))
.addConst ("MustStop", ARDOUR::LocateTransportDisposition(MustStop))
.addConst ("RollIfAppropriate", ARDOUR::LocateTransportDisposition(RollIfAppropriate))
.endNamespace ()
.beginNamespace ("SampleFormat")
.addConst ("Float", ARDOUR::SampleFormat(FormatFloat))
.addConst ("Int24", ARDOUR::SampleFormat(FormatInt24))