summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)