1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/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
..
include_lua lua add audio_play consolidate audio_ functions 2018-10-24 12:37:29 -04:00
action_helper.pl Lua: Add pluginlib_actions wrapper for lua scripts. 2012-01-27 09:15:05 +01:00
button_helper.pl Lua: always expose BUTTON_TOUCHSCREEN and remove BUTTON_ constants from rocklib.c 2009-07-03 23:03:07 +00:00
fscanf.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
gmtime.c Limit more variables to file scope 2015-01-11 21:40:51 +01:00
lapi.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lapi.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lauxlib.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lauxlib.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lbaselib.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lbitlib.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lcode.c Fix lua failure to catch divide by zero and NaN exceptions 2018-06-05 18:47:57 +02:00
lcode.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
ldebug.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
ldebug.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
ldo.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
ldo.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
ldump.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lfunc.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lfunc.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lgc.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lgc.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
liolib.c Lua liolib 2018-05-28 02:36:23 +02:00
llex.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
llex.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
llimits.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lmathlib.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lmem.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lmem.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
loadlib.c lua optimize current_path function 2018-10-15 18:24:10 +02:00
lobject.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lobject.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lopcodes.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lopcodes.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
loslib.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lparser.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lparser.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lstate.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lstate.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lstring.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lstring.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lstrlib.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
ltable.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
ltable.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
ltablib.c Fix misleading indentation as pointed out by the new gcc warning 2016-08-12 15:33:28 +02:00
ltm.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
ltm.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lua.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lua.make lua add audio_play consolidate audio_ functions 2018-10-24 12:37:29 -04:00
luaconf.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
luadir.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
luadir.h FS#11347 by me: *dir LUA functions: luadir module 2010-06-18 13:10:14 +00:00
lualib.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lundump.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lundump.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lvm.c Fix lua failure to catch divide by zero and NaN exceptions 2018-06-05 18:47:57 +02:00
lvm.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lzio.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
lzio.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
Makefile FS#12144, Use -fPIC -fvisibility=hidden only for plugins on sim and app builds and enable it for 32 bit too. Fixes linking errors on simbuilds. 2011-06-07 11:56:23 +00:00
README lua: Switch memory allocator from dl to tlsf 2013-08-26 09:42:47 +02:00
rockaux.c lua optimize current_path function 2018-10-15 18:24:10 +02:00
rockconf.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
rocklib.c lua add audio_play consolidate audio_ functions 2018-10-24 12:37:29 -04:00
rocklib.h lua optimize current_path function 2018-10-15 18:24:10 +02:00
rocklib_aux.pl lua add audio_play consolidate audio_ functions 2018-10-24 12:37:29 -04:00
rocklib_img.c lua move rocklib_img to its own separate loadable module 2018-10-22 14:00:58 -04:00
rocklib_img.h lua move rocklib_img to its own separate loadable module 2018-10-22 14:00:58 -04:00
rocklibc.h Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
rocklua.c lua move rocklib_img to its own separate loadable module 2018-10-22 14:00:58 -04:00
SOURCES lua move RLIMAGE to own file 2018-09-14 01:00:35 +02:00
strcspn.c Revert "Update lua plugin to 5.2.3" 2014-04-02 20:46:06 +02:00
strftime.c Fix yellow & red 2009-05-27 23:02:17 +00:00
strncat.c Fix misleading indentation as pointed out by the new gcc warning 2016-08-12 15:33:28 +02:00
strpbrk.c Initial commit of the Samsung YP-R0 port. 2011-12-24 11:56:46 +00:00
strstr.c
strtol.c
strtoul.c
tlsf_helper.c lua: Switch memory allocator from dl to tlsf 2013-08-26 09:42:47 +02:00

The following files are (with slight modifications for Rockbox) from dietlibc
version 0.31 which is licensed under the GPL version 2:

    gmtime.c
    strcspn.c
    strftime.c
    strncat.c
    strpbrk.c
    strtol.c
    strtoul.c
    strstr.c