Added looping in love.audio (though needs implementation in love.sound).

This commit is contained in:
rude
2009-08-01 22:11:48 +02:00
parent c1ed4372d9
commit 524ef5e118
14 changed files with 87 additions and 20 deletions
+2 -2
View File
@@ -104,7 +104,7 @@ namespace love
int luax_register_gc(lua_State * L, const char * mname, Module * m)
{
lua_getglobal(L, "love");
lua_getfield(L, -1, "__fin");
lua_getfield(L, -1, "_fin");
userdata * u = (userdata *)lua_newuserdata(L, sizeof(userdata));
u->own = true;
@@ -117,7 +117,7 @@ namespace love
lua_setfield(L, -2, mname);
lua_pop(L, 2); // __fin, love
lua_pop(L, 2); // _fin, love
return 0;
}