From 75e34b291b94444a708e06a51219f8da408054ac Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 26 Mar 2016 14:54:45 +0100 Subject: [PATCH] move LuaOSC into Ardour namespace --- libs/ardour/luabindings.cc | 2 ++ scripts/osc_hook_example.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/luabindings.cc b/libs/ardour/luabindings.cc index 61e3f817a5..75dacad86f 100644 --- a/libs/ardour/luabindings.cc +++ b/libs/ardour/luabindings.cc @@ -762,11 +762,13 @@ void LuaBindings::osc (lua_State* L) { luabridge::getGlobalNamespace (L) + .beginNamespace ("ARDOUR") .beginNamespace ("LuaOSC") .beginClass ("Address") .addConstructor () .addCFunction ("send", &LuaOSC::Address::send) .endClass () + .endNamespace () .endNamespace (); } diff --git a/scripts/osc_hook_example.lua b/scripts/osc_hook_example.lua index 4b1619bf0e..6d8feda8a5 100644 --- a/scripts/osc_hook_example.lua +++ b/scripts/osc_hook_example.lua @@ -28,7 +28,7 @@ end function factory (params) return function (signal, ref, ...) local uri = params["unique"] or "osc.udp://localhost:7890" - local tx = LuaOSC.Address (uri) + local tx = ARDOUR.LuaOSC.Address (uri) -- debug print (stdout) -- print (signal, ref, ...)