mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-11 16:06:25 +01:00
Allow to create a shared_ptr<Track>() from Lua
This is relevant for an upcoming API chnage where `do_import` requires a boost::shared_ptr<ARDOUR:Track>.
This commit is contained in:
parent
fdac3cb01c
commit
20088062bb
1 changed files with 1 additions and 0 deletions
|
|
@ -1504,6 +1504,7 @@ LuaBindings::common (lua_State* L)
|
|||
.endClass ()
|
||||
|
||||
.deriveWSPtrClass <Track, Route> ("Track")
|
||||
.addNilPtrConstructor ()
|
||||
.addCast<AudioTrack> ("to_audio_track")
|
||||
.addCast<MidiTrack> ("to_midi_track")
|
||||
.addFunction ("set_name", &Track::set_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue