add some missing enum bindings (for config variables)
authorRobin Gareus <robin@gareus.org>
Mon, 15 Aug 2016 22:20:36 +0000 (00:20 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 15 Aug 2016 22:20:36 +0000 (00:20 +0200)
libs/ardour/luabindings.cc

index 6f34b57f06b9dae9c0a3a62c65ea0049efa4898e..1a38fa1d926733a0f543be0244a6741b344bd7d1 100644 (file)
@@ -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)