Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Scripting language (was: Audio_3587 Released)

Scripting language (was: Audio_3587 Released)

From: BlueChip <cs_bluechip_at_webtribe.net>
Date: Wed, 09 Jun 2004 19:47:53 +0100

>>Obviously, one of the calls to plugchain.rock would be during startup,
>>where main() would
>>load_rock("/autoexec.bat",0)
>>[autoexec.bat]
>>IF PLUGGED
>> settings/car.cfg
>> audio_3587 settings/car.vol
>> car_head.rock "alpine"
>>ELSE
>> ASK "left=home ... right=walkman" LEFT|RIGHT
>> LEFT
>> settings/home.cfg
>> audio_3587 settings/home.vol
>> RIGHT
>> settings/walkman.cfg
>> audio_3587 settings/car.vol
>> FORCE_RESUME
>> ENDASK
>>ENDIF
>>
>>
>>Well, you get the idea, and the concept could be quickly expanded to
>>include any event driven task you like :)
>
>Yeah, a scripting language inside rockbox! I like the idea.
>Maybe there exist some freeware language which is light enough to go
>inside rockbox?
>The lightness might be the problem, don't you think?

I discussed this with a friend at length last night, he mentioned a basic
interpreter was built in 1K of C in a competition at ioccc a few years
back, that leaves 31K for a cute plugin interface, or you could include it
in the core, as you prefer.

Either way I have some snazzy ideas for it, unless one of the Rockbox guys
beats me to it. The dilemma is that to create a full event driven
interface (when a song starts <x>; when a menu displays (y), when the
machine boots <z>) would require hooks all over the core code - and that
bit is out of my hands now :(

BlueChip

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2004-06-09

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy