13
0

Add Lua bindings for new VCA/Slavable API

This commit is contained in:
Robin Gareus 2017-10-20 02:18:16 +02:00
parent 5dc54c91c7
commit 1f842cf994

View File

@ -974,6 +974,8 @@ LuaBindings::common (lua_State* L)
.beginWSPtrClass <Slavable> ("Slavable") .beginWSPtrClass <Slavable> ("Slavable")
.addFunction ("assign", &Slavable::assign) .addFunction ("assign", &Slavable::assign)
.addFunction ("unassign", &Slavable::unassign) .addFunction ("unassign", &Slavable::unassign)
.addFunction ("masters", &Slavable::masters)
.addFunction ("assigned_to", &Slavable::assigned_to)
.endClass () .endClass ()
.deriveWSPtrClass <Stripable, SessionObject> ("Stripable") .deriveWSPtrClass <Stripable, SessionObject> ("Stripable")
@ -1035,6 +1037,8 @@ LuaBindings::common (lua_State* L)
.addFunction ("gain_control", &VCA::gain_control) .addFunction ("gain_control", &VCA::gain_control)
.addFunction ("solo_control", &VCA::solo_control) .addFunction ("solo_control", &VCA::solo_control)
.addFunction ("mute_control", &VCA::mute_control) .addFunction ("mute_control", &VCA::mute_control)
.addFunction ("slaved_to", &VCA::slaved_to)
.addFunction ("slaved", &VCA::slaved)
.endClass () .endClass ()
.deriveWSPtrClass <Route, Stripable> ("Route") .deriveWSPtrClass <Route, Stripable> ("Route")
@ -1565,6 +1569,10 @@ LuaBindings::common (lua_State* L)
.beginConstStdList <boost::shared_ptr<VCA> > ("VCAList") .beginConstStdList <boost::shared_ptr<VCA> > ("VCAList")
.endClass () .endClass ()
// VCAVector == std::vector<boost::shared_ptr<VCA> >
.beginConstStdVector <boost::shared_ptr<VCA> > ("VCAVector")
.endClass ()
// boost::shared_ptr<RouteList> // boost::shared_ptr<RouteList>
.beginPtrStdList <boost::shared_ptr<Route> > ("RouteListPtr") .beginPtrStdList <boost::shared_ptr<Route> > ("RouteListPtr")
.addVoidPtrConstructor<std::list<boost::shared_ptr <Route> > > () .addVoidPtrConstructor<std::list<boost::shared_ptr <Route> > > ()
@ -2185,6 +2193,7 @@ LuaBindings::common (lua_State* L)
.addFunction ("disable_record", &Session::disable_record) .addFunction ("disable_record", &Session::disable_record)
.addFunction ("route_by_id", &Session::route_by_id) .addFunction ("route_by_id", &Session::route_by_id)
.addFunction ("route_by_name", &Session::route_by_name) .addFunction ("route_by_name", &Session::route_by_name)
.addFunction ("stripable_by_id", &Session::stripable_by_id)
.addFunction ("get_remote_nth_stripable", &Session::get_remote_nth_stripable) .addFunction ("get_remote_nth_stripable", &Session::get_remote_nth_stripable)
.addFunction ("get_remote_nth_route", &Session::get_remote_nth_route) .addFunction ("get_remote_nth_route", &Session::get_remote_nth_route)
.addFunction ("route_by_selected_count", &Session::route_by_selected_count) .addFunction ("route_by_selected_count", &Session::route_by_selected_count)