Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  Use of LUA?
« previous next »
  • Print
Pages: [1]

Author Topic: Use of LUA?  (Read 2245 times)

Offline mlind

  • Member
  • *
  • Posts: 179
  • Recording Pro
Use of LUA?
« on: June 03, 2009, 05:18:14 AM »
Hi
I noticed the addition of a viewer for LUA files.
So LUA is a scripting laguage, ok.

But what use can we expect to have of it?
How advanced operations can be done by LUA on Rockbox?
Access the filesystem? Play audio?

What lua files can I find (on the net) and use on my Rockboxed DAP?

/M
Logged
iRiver H120

Offline safetydan

  • Developer
  • Member
  • *
  • Posts: 248
Re: Use of LUA?
« Reply #1 on: June 03, 2009, 05:46:38 AM »
You're unlikely to be able to just download random .lua files from the internets and have them work on Rockbox. While some of the standard Lua API is available, quite a lot isn't. There's also Rockbox specific screen drawing and button access functions you need to use.

The purpose of the Lua plugin (at least for me) is to give people an easier way to write plugins for Rockbox. It should (eventually) be able to do everything you could do by writing a plugin in C.
Logged

Offline mlind

  • Member
  • *
  • Posts: 179
  • Recording Pro
Re: Use of LUA?
« Reply #2 on: June 03, 2009, 12:28:43 PM »
Ok. Thanks for your answer.
Logged
iRiver H120

Offline animatorgeek

  • Member
  • *
  • Posts: 36
    • Some of my animation
Re: Use of LUA?
« Reply #3 on: June 16, 2009, 10:00:34 PM »
My immediate curiosity has to do with how much you can interact with the UI through LUA.  For instance, could I create a script that sets various recording options, goes to the recording screen, and immediately starts recording?  The reason I thought of this was because I always feel kind of awkward getting my player set up to record.  It would be great if I could just click on the "record voice" script instead of having to go in, set the right AGC, select the internal mic, go to the record screen, and start it recording.

Of course, if you could do this stuff, you could also do lots of other stuff, automating whatever you want in the player.
Logged
Rockboxed iRiver h132, CF Mod, RTC Mod, 2200mAh battery

Offline safetydan

  • Developer
  • Member
  • *
  • Posts: 248
Re: Use of LUA?
« Reply #4 on: June 16, 2009, 10:04:43 PM »
It doesn't quite work that way unfortunately. The things that LUA can do is the same as plugins. So at the moment a plugin couldn't do that so LUA scripts can't do that. The idea with LUA is to just lower the barrier to entry for writing plugins.

Scripting the UI is a possibility for future enhancement, but it's not likely to happen soon.
Logged

Offline Thecoolgman

  • Member
  • *
  • Posts: 55
    • Xylem
Re: Use of LUA?
« Reply #5 on: June 19, 2009, 10:56:20 PM »
I wish you could customize the GUI like WPS's.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  Use of LUA?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.082 seconds with 14 queries.