From b670fcd50d42085a2db978bbcf2ccfd889d740ef Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 24 Oct 2018 10:49:52 -0400 Subject: 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 --- apps/plugins/lua/rocklib_aux.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/lua/rocklib_aux.pl') diff --git a/apps/plugins/lua/rocklib_aux.pl b/apps/plugins/lua/rocklib_aux.pl index 085a191..e47a898 100755 --- a/apps/plugins/lua/rocklib_aux.pl +++ b/apps/plugins/lua/rocklib_aux.pl @@ -75,7 +75,7 @@ my @forbidden_functions = ('^open$', '^lcd_(mono_)?+bitmap', '^__.+$', '^.+_(un)?cached$', - '^audio_play$', + '^audio_.+$', '^round_value_to_list32$'); my $rocklib = sprintf("%s/rocklib.c", $ARGV[0]); -- cgit v1.1