summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/lua.make
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-10-24 10:49:52 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2018-10-24 12:37:29 -0400
commitb670fcd50d42085a2db978bbcf2ccfd889d740ef (patch)
tree926ae29bf659c7ad93b274d6f7e4989fa3f32350 /apps/plugins/lua/lua.make
parent20b98f6fd0e5916bffe9561ebd324acdfbabf61a (diff)
downloadrockbox-b670fcd50d42085a2db978bbcf2ccfd889d740ef.tar.gz
rockbox-b670fcd50d42085a2db978bbcf2ccfd889d740ef.zip
lua add audio_play consolidate audio_ functions
audio_play was removed from the rocklib I assume due to inconsistent behavior I've readded it with a check for audio paused which instead uses rewind/ff and then resumes audio the way to call the audio functions has changed as well rb.audio("option", var) so rb.audio_play(0, 0) becomes rb.audio("play", 0, 0) audio_audio_flush_and_reload_tracks becomes rb.audio("flushandreloadtracks") all functions except audio("getfilepos") return the previous (or still current) status added audio.lua to the includes for conversion to old functions if your script is broken by this change you simply add `require("audio")` to the top for the old functionality Change-Id: I364adf0c85d9c12b98cde29c26fbe5ee05b9d331
Diffstat (limited to 'apps/plugins/lua/lua.make')
-rw-r--r--apps/plugins/lua/lua.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/lua.make b/apps/plugins/lua/lua.make
index 58b3b69831..5931b655e8 100644
--- a/apps/plugins/lua/lua.make
+++ b/apps/plugins/lua/lua.make
@@ -16,7 +16,7 @@ LUA_OBJ := $(call c2obj, $(LUA_SRC))
OTHER_SRC += $(LUA_SRC)
LUA_INCLUDEDIR := $(LUA_SRCDIR)/include_lua
-LUA_INCLUDELIST := $(addprefix $(LUA_BUILDDIR)/,blit.lua color.lua draw.lua image.lua lcd.lua math_ex.lua print.lua timer.lua)
+LUA_INCLUDELIST := $(addprefix $(LUA_BUILDDIR)/,audio.lua blit.lua color.lua draw.lua image.lua lcd.lua math_ex.lua print.lua timer.lua)
ifndef APP_TYPE
ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET)))))