1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
#include "libs/luax/luax.h" #include "audio/audio.h" namespace jin { namespace lua { static int l_init(lua_State* L) { return 0; } static int l_newSound(lua_State* L) { return 0; } static const luaL_Reg f[] = { {"init", l_init}, {"Sound", l_newSound}, {0, 0} }; int luaopen_audio(lua_State* L) { return 1; } } }