1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-27 16:39:29 +00:00

ADDED AUDIO! WAV working perfectly

Added libogg, libvorbis and libvorbisfile to 3ds_portlibs. You will need to compile thems using make build-portlibs. Opening OGG files works but they play badly.

Added a very simple error handler in main.lua

Added audio example.

Renamed isGfxInitialised to isGfxInitialized.

Did you know? The audio module is the longest ctrµLua module.
This commit is contained in:
Reuh 2015-12-27 19:54:58 +01:00
parent 716c42b849
commit bda9de4d1c
10 changed files with 985 additions and 17 deletions

View file

@ -16,7 +16,7 @@ The `gfx` module.
#include "font.h"
bool isGfxInitialised = false;
bool isGfxInitialized = false;
bool is3DEnabled = false; //TODO: add a function for this in the ctrulib/sf2dlib.
/***
@ -459,7 +459,7 @@ void load_gfx_lib(lua_State *L) {
sf2d_init();
sftd_init();
isGfxInitialised = true;
isGfxInitialized = true;
luaL_requiref(L, "ctr.gfx", luaopen_gfx_lib, 0);
}