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

Updated audio example

This commit is contained in:
Reuh 2016-03-23 19:53:46 +01:00
parent 6ac83ca6df
commit 04eb578892
2 changed files with 2 additions and 1 deletions

View file

@ -47,6 +47,7 @@ while true do
gfx.text(5, 65, "Speed: "..(speed*100).."% - Left balance: "..(leftBalance*100).."%") gfx.text(5, 65, "Speed: "..(speed*100).."% - Left balance: "..(leftBalance*100).."%")
gfx.stop() gfx.stop()
audio.update()
gfx.render() gfx.render()
end end

View file

@ -931,7 +931,7 @@ static int audio_object_stop(lua_State *L) {
/*** /***
Returns the audio object type. Returns the audio object type.
@function :type @function :type
@treturn string "ogg" or "wav" @treturn string "ogg", "wav" or "raw"
*/ */
static int audio_object_type(lua_State *L) { static int audio_object_type(lua_State *L) {
audio_userdata *audio = luaL_checkudata(L, 1, "LAudio"); audio_userdata *audio = luaL_checkudata(L, 1, "LAudio");