1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/lua/include_lua
William Wilgus b670fcd50d 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
2018-10-24 12:37:29 -04:00
..
audio.lua lua add audio_play consolidate audio_ functions 2018-10-24 12:37:29 -04:00
blit.lua Clean up rocklib_img 2018-10-09 01:02:25 +02:00
color.lua Fix red rocklib_img 32-24 bit targets 2018-10-08 19:59:50 -04:00
draw.lua Fix red rocklib_img 32-24 bit targets 2018-10-08 19:59:50 -04:00
image.lua Clean up rocklib_img 2018-10-09 01:02:25 +02:00
lcd.lua Fix red rocklib_img 32-24 bit targets 2018-10-08 19:59:50 -04:00
math_ex.lua Rocklua -- Extend / Fix rliImage 2018-07-23 05:13:32 +02:00
print.lua Fix red rocklib_img 32-24 bit targets 2018-10-08 19:59:50 -04:00
timer.lua Rocklua -- Extend / Fix rliImage 2018-07-23 05:13:32 +02:00