summaryrefslogtreecommitdiff
path: root/libs/ardour/luabindings.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-08-16 00:20:36 +0200
committerRobin Gareus <robin@gareus.org>2016-08-16 00:20:36 +0200
commit29feb8dec7bda7bc9d35362095cc8c3505cded01 (patch)
tree6c50be9798f0e08ad3dc2d0012482c05845a0f49 /libs/ardour/luabindings.cc
parenta6041f290ee24ea2915fc1318cab18dc23111de7 (diff)
add some missing enum bindings (for config variables)
Diffstat (limited to 'libs/ardour/luabindings.cc')
-rw-r--r--libs/ardour/luabindings.cc43
1 files changed, 43 insertions, 0 deletions
diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc
index 6f34b57f06..1a38fa1d92 100644
--- a/libs/ardour/luabindings.cc
+++ b/libs/ardour/luabindings.cc
@@ -359,6 +359,21 @@ LuaBindings::common (lua_State* L)
.beginClass <Timecode::BBT_Time> ("BBT_TIME")
.addConstructor <void (*) (uint32_t, uint32_t, uint32_t)> ()
.endClass ()
+
+ /* libtimecode enums */
+ .beginNamespace ("TimecodeFormat")
+ .addConst ("TC23976", Timecode::TimecodeFormat(Timecode::timecode_23976))
+ .addConst ("TC24", Timecode::TimecodeFormat(Timecode::timecode_24))
+ .addConst ("TC24976", Timecode::TimecodeFormat(Timecode::timecode_24976))
+ .addConst ("TC25", Timecode::TimecodeFormat(Timecode::timecode_25))
+ .addConst ("TC2997", Timecode::TimecodeFormat(Timecode::timecode_2997))
+ .addConst ("TC2997DF", Timecode::TimecodeFormat(Timecode::timecode_2997drop))
+ .addConst ("TC2997000", Timecode::TimecodeFormat(Timecode::timecode_2997000))
+ .addConst ("TC2997000DF", Timecode::TimecodeFormat(Timecode::timecode_2997000drop))
+ .addConst ("TC30", Timecode::TimecodeFormat(Timecode::timecode_30))
+ .addConst ("TC5994", Timecode::TimecodeFormat(Timecode::timecode_5994))
+ .addConst ("TC60", Timecode::TimecodeFormat(Timecode::timecode_60))
+ .endNamespace ()
.endNamespace ();
luabridge::getGlobalNamespace (L)
@@ -1109,6 +1124,34 @@ LuaBindings::common (lua_State* L)
.addConst ("NonLayered", ARDOUR::TrackMode(NonLayered))
.addConst ("Destructive", ARDOUR::TrackMode(Destructive))
.endNamespace ()
+
+ .beginNamespace ("SampleFormat")
+ .addConst ("Float", ARDOUR::SampleFormat(FormatFloat))
+ .addConst ("Int24", ARDOUR::SampleFormat(FormatInt24))
+ .addConst ("Int16", ARDOUR::SampleFormat(FormatInt16))
+ .endNamespace ()
+
+ .beginNamespace ("HeaderFormat")
+ .addConst ("BWF", ARDOUR::HeaderFormat(BWF))
+ .addConst ("WAVE", ARDOUR::HeaderFormat(WAVE))
+ .addConst ("WAVE64", ARDOUR::HeaderFormat(WAVE64))
+ .addConst ("CAF", ARDOUR::HeaderFormat(CAF))
+ .addConst ("AIFF", ARDOUR::HeaderFormat(AIFF))
+ .addConst ("iXML", ARDOUR::HeaderFormat(iXML))
+ .addConst ("RF64", ARDOUR::HeaderFormat(RF64))
+ .addConst ("RF64_WAV", ARDOUR::HeaderFormat(RF64_WAV))
+ .addConst ("MBWF", ARDOUR::HeaderFormat(MBWF))
+ .endNamespace ()
+
+ .beginNamespace ("InsertMergePolicy")
+ .addConst ("Reject", ARDOUR::InsertMergePolicy(InsertMergeReject))
+ .addConst ("Relax", ARDOUR::InsertMergePolicy(InsertMergeRelax))
+ .addConst ("Replace", ARDOUR::InsertMergePolicy(InsertMergeReplace))
+ .addConst ("TruncateExisting", ARDOUR::InsertMergePolicy(InsertMergeTruncateExisting))
+ .addConst ("TruncateAddition", ARDOUR::InsertMergePolicy(InsertMergeTruncateAddition))
+ .addConst ("Extend", ARDOUR::InsertMergePolicy(InsertMergeExtend))
+ .endNamespace ()
+
.endNamespace (); // end ARDOUR
luabridge::getGlobalNamespace (L)