From 70cdd89e887641b7423e5d4d05928d14ee014aba Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 17 May 2018 19:10:57 +0800 Subject: change file tree --- src/lua/audio/luaopen_Sound.cpp | 25 ------------------------- src/lua/audio/luaopen_audio.cpp | 38 -------------------------------------- 2 files changed, 63 deletions(-) delete mode 100644 src/lua/audio/luaopen_Sound.cpp delete mode 100644 src/lua/audio/luaopen_audio.cpp (limited to 'src/lua/audio') diff --git a/src/lua/audio/luaopen_Sound.cpp b/src/lua/audio/luaopen_Sound.cpp deleted file mode 100644 index 0b494b8..0000000 --- a/src/lua/audio/luaopen_Sound.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include "libs/luax/luax.h" - -namespace jin -{ -namespace lua -{ - - static int l_play(lua_State* L) - { - - return 0; - } - - static const luaL_Reg f[] = { - {"play", l_play}, - {0, 0} - }; - - int luaopen_Sound(lua_State* L) - { - - return 1; - } -} -} diff --git a/src/lua/audio/luaopen_audio.cpp b/src/lua/audio/luaopen_audio.cpp deleted file mode 100644 index 4c9b5a7..0000000 --- a/src/lua/audio/luaopen_audio.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include - -#include "libs/luax/luax.h" -#include "audio/audio.h" - -namespace jin -{ -namespace lua -{ - static int l_init(lua_State* L) - { - if (SDL_Init(SDL_INIT_AUDIO) < 0) - { - luax_error(L, "could not init audio"); - luax_pushboolean(L, false); - return 1; - } - } - - 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; - } -} -} \ No newline at end of file -- cgit v1.1-26-g67d0