diff options
author | chai <chaifix@163.com> | 2018-05-17 19:10:57 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-17 19:10:57 +0800 |
commit | 70cdd89e887641b7423e5d4d05928d14ee014aba (patch) | |
tree | 248b87ae35197a9e5941e65ef20eea359e87a5ed /src/lua/audio | |
parent | df4b054b8e8d00f7817daaa4cbf6961712cd0b75 (diff) |
change file tree
Diffstat (limited to 'src/lua/audio')
-rw-r--r-- | src/lua/audio/luaopen_Sound.cpp | 25 | ||||
-rw-r--r-- | src/lua/audio/luaopen_audio.cpp | 38 |
2 files changed, 0 insertions, 63 deletions
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 <SDL2/SDL.h> - -#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 |