diff options
author | Robin Gareus <robin@gareus.org> | 2018-07-17 09:41:33 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-07-17 09:44:34 +0200 |
commit | bd4571eeae9da1c5fc6ad1edfa57453336cb6b64 (patch) | |
tree | c57d43db1928b70cbd8988ac404e67a0bbbcddaf | |
parent | e5a181c323243a03338f5a9934a5df254986370d (diff) |
Add LTC Decoder Lua Bindings
-rw-r--r-- | libs/ardour/luabindings.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index e775109213..bbfe34aae7 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -48,6 +48,7 @@ #include "ardour/file_source.h" #include "ardour/fluid_synth.h" #include "ardour/interthread_info.h" +#include "ardour/ltc_file_reader.h" #include "ardour/lua_api.h" #include "ardour/luabindings.h" #include "ardour/luaproc.h" @@ -2385,6 +2386,12 @@ LuaBindings::common (lua_State* L) .addFunction ("set_type", &DSP::Generator::set_type) .endClass () + .beginClass <ARDOUR::LTCReader> ("LTCReader") + .addConstructor <void (*) (int, LTC_TV_STANDARD)> () + .addFunction ("write", &ARDOUR::LTCReader::write) + .addRefFunction ("read", &ARDOUR::LTCReader::read) + .endClass () + /* DSP enums */ .beginNamespace ("BiquadType") .addConst ("LowPass", ARDOUR::DSP::Biquad::LowPass) @@ -2404,6 +2411,13 @@ LuaBindings::common (lua_State* L) .addConst ("PinkNoise", ARDOUR::DSP::Generator::PinkNoise) .endNamespace () + .beginNamespace ("LTC_TV_STANDARD") + .addConst ("LTC_TV_525_60", LTC_TV_525_60) + .addConst ("LTC_TV_625_50", LTC_TV_625_50) + .addConst ("LTC_TV_1125_60", LTC_TV_1125_60) + .addConst ("LTC_TV_FILM_24", LTC_TV_FILM_24) + .endNamespace () + .beginClass <DSP::DspShm> ("DspShm") .addConstructor<void (*) (size_t)> () .addFunction ("allocate", &DSP::DspShm::allocate) |