13
0

Fix Windows builds 1/2 (amend bcbb4393fc)

This commit is contained in:
Robin Gareus 2024-04-24 06:02:13 +02:00
parent 38adfdf79e
commit df12126909
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 16 additions and 8 deletions

View File

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

View File

@ -3449,6 +3449,20 @@ LuaBindings::session (lua_State* L)
.endNamespace (); // ARDOUR .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 void
LuaBindings::osc (lua_State* L) LuaBindings::osc (lua_State* L)
{ {

View File

@ -5690,14 +5690,7 @@ Session::setup_lua ()
LuaBindings::stddef (L); LuaBindings::stddef (L);
LuaBindings::common (L); LuaBindings::common (L);
LuaBindings::dsp (L); LuaBindings::dsp (L);
luabridge::getGlobalNamespace (L) luabindings_session_rt (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 ();
lua_mlock (L, 0); lua_mlock (L, 0);
luabridge::push <Session *> (L, this); luabridge::push <Session *> (L, this);