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

Added Tremor Ogg decoder, removed libvorbis from Makefile. OGG audio working perfectly.

Tremor is extremly similar to libogg but only uses integers (and doesn't provide an encoder). The playing problem with libvorbis was probably a float-precision related issue.

No need for make build-all.
This commit is contained in:
Reuh 2015-12-29 17:25:34 +01:00
parent c053997f96
commit e39fcc6c7b
97 changed files with 16571 additions and 15 deletions

View file

@ -41,7 +41,7 @@ Load a texture from a file. Supported formats: PNG, JPEG, BMP.
*/
static int texture_load(lua_State *L) {
const char *path = luaL_checkstring(L, 1);
u8 place = luaL_optinteger(L, 2, SF2D_PLACE_RAM); //place in vram by default
u8 place = luaL_optinteger(L, 2, SF2D_PLACE_RAM); //place in ram by default
u8 type = luaL_optinteger(L, 3, 3); //type 3 is "search at the end of the filename"
texture_userdata *texture;