diff options
Diffstat (limited to 'src/lua/audio/luaopen_audio.cpp')
-rw-r--r-- | src/lua/audio/luaopen_audio.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
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 |