10#include "SDL_thread.h"
11#include <vorbis/vorbisfile.h>
16#define AUDIO_METATABLE "audio"
18typedef enum LuaAudioType_e {
24typedef struct LuaBuffer_s {
29typedef struct LuaAudio_s {
49 ALuint stream_buffers[2];
LuaAudio_t * lua_toaudio(lua_State *L, int ind)
Gets audio at index.
LuaAudio_t * lua_pushaudio(lua_State *L, LuaAudio_t audio)
Pushes a audio on the stack.
int lua_isaudio(lua_State *L, int ind)
Checks to see if ind is a audio.
LuaAudio_t * luaL_checkaudio(lua_State *L, int ind)
Gets audio at index or raises error if there is no audio at index.
int nlua_loadAudio(nlua_env env)
Loads the audio library.