dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: "-._.-" Audio_3587 - Public Release "-._.-"

Re: "-._.-" Audio_3587 - Public Release "-._.-"

From: BlueChip <>
Date: Tue, 08 Jun 2004 18:57:40 +0100

At 17:35 08/06/04, you wrote:
> > jorg made that in his cd changer emulation plugin...
> > no autostart yet.
>I've made autostart in my local build. The init code checks for
>"autostart.rock" and runs it if present. I did not dare to commit this to
>the general public, because most people won't use it. Or?

May i propose a more flexible system which opens the door to future
expansion and Zagor's wild dream (that is a compliment)?

Instead of autoexec.rock, have plugchain.rock which is called by rockbox
with a text file to describe the tasks it should perform.

This way you could run multiple plugins, select differing options if the
unit is "plugged", and also it could be called by, say, play_file for
volume-settings-per-file stuff ...load some settings, start the song, show
the picture.

Obviously, one of the calls to plugchain.rock would be during startup,
where main() would
   audio_3587 settings/car.vol
   car_head.rock "alpine"
   ASK "left=home ... right=walkman" LEFT|RIGHT
       audio_3587 settings/home.vol
       audio_3587 settings/car.vol

Well, you get the idea, and the concept could be quickly expanded to
include any event driven task you like :)

Good ideas?


Received on 2004-06-08

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