Compare commits

...

2 Commits

3 changed files with 17 additions and 8 deletions

View File

@ -1663,6 +1663,7 @@ private:
uint32_t _n_lua_scripts;
void setup_lua ();
void luabindings_session_rt (lua_State*);
void try_run_lua (pframes_t);
SerializedRCUManager<IOPlugList> _io_plugins;

View File

@ -221,6 +221,7 @@ luabridge::getIdentityKey ()
template void const* luabridge::ClassInfo< CLS >::getConstKey();
CLASSINFO(ArdourMarker);
CLASSINFO(AudioRegionView);
CLASSINFO(AxisView);
CLASSINFO(MarkerSelection);
CLASSINFO(PublicEditor);
@ -3449,6 +3450,20 @@ LuaBindings::session (lua_State* L)
.endNamespace (); // ARDOUR
}
void
ARDOUR::Session::luabindings_session_rt (lua_State* L)
{
/* declaration need to be in this file due to Windows CLASSKEYS */
luabridge::getGlobalNamespace (L)
.beginNamespace ("Ardour")
.beginClass <Session> ("Session")
/* thse are private to Session */
.addFunction ("rt_set_controls", &Session::rt_set_controls)
.addFunction ("rt_clear_all_solo_state", &Session::rt_clear_all_solo_state)
.endClass ()
.endNamespace ();
}
void
LuaBindings::osc (lua_State* L)
{

View File

@ -5690,14 +5690,7 @@ Session::setup_lua ()
LuaBindings::stddef (L);
LuaBindings::common (L);
LuaBindings::dsp (L);
luabridge::getGlobalNamespace (L)
.beginNamespace ("Ardour")
.beginClass <Session> ("Session")
/* thse are private to Session */
.addFunction ("rt_set_controls", &Session::rt_set_controls)
.addFunction ("rt_clear_all_solo_state", &Session::rt_clear_all_solo_state)
.endClass ()
.endNamespace ();
luabindings_session_rt (L);
lua_mlock (L, 0);
luabridge::push <Session *> (L, this);