Audio ROM Lua Bindings

This commit is contained in:
Robin Gareus 2020-02-01 15:57:47 +01:00
parent 3483c3589a
commit bfebe43a02
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,7 @@
#include "ardour/audio_port.h"
#include "ardour/audio_track.h"
#include "ardour/audioplaylist.h"
#include "ardour/audiorom.h"
#include "ardour/buffer_set.h"
#include "ardour/beats_samples_converter.h"
#include "ardour/chan_mapping.h"
@ -260,6 +261,7 @@ CLASSKEYS(std::list<boost::shared_ptr<ARDOUR::Stripable> >);
CLASSKEYS(boost::shared_ptr<std::list<boost::shared_ptr<ARDOUR::Route> > >);
CLASSKEYS(boost::shared_ptr<ARDOUR::AudioRegion>);
CLASSKEYS(boost::shared_ptr<ARDOUR::AudioRom>);
CLASSKEYS(boost::shared_ptr<ARDOUR::AudioSource>);
CLASSKEYS(boost::shared_ptr<ARDOUR::Automatable>);
CLASSKEYS(boost::shared_ptr<ARDOUR::AutomatableSequence<Temporal::Beats> >);
@ -1201,6 +1203,10 @@ LuaBindings::common (lua_State* L)
.addStaticFunction ("load", &Readable::load)
.endClass ()
.deriveWSPtrClass <AudioRom, Readable> ("AudioRom")
.addStaticFunction ("new_rom", &AudioRom::new_rom)
.endClass ()
.deriveWSPtrClass <Region, SessionObject> ("Region")
.addCast<Readable> ("to_readable")
.addCast<MidiRegion> ("to_midiregion")