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



Rockbox mail archive

Subject: Re: Single play mode and feature bloat
From: Jerry Van Baren (gerald.vanbaren_at_smiths-aerospace.com)
Date: 2003-05-02


I've been dabbling with the idea of a loadable user interface. This is the
same idea as WPS, only for the whole interface and not just the playback
screen. This would eliminate "UI wars" and would allow specialized uses
without requiring recompilation of the code (for my specialized use, I want
a very simple to use "tape recorder" style interface).

The downside, of course, is (a) it has to be invented, (b) it has to be
written, (c) it has to be debugged, and (d) it has to be reasonably compact
so our 200K of RockBox doesn't bloat into 190K of flexible UI and no
functionality :-/.

My thoughts are to use XML to define screens, using the XML links to form
menus. Tags would then be created to allow functions to be called with
parameters passed in from the UI definition file (e.g. a function would
display a directory listing with parameters identifying how many lines or
the x/y screen area it could use to display the directory listing in). UI
functions would be "exported" which would create a mapping of the ASCII
name of the function to the actual code so the UI XML would use symbolic
names for the UI functions.

If parsing the XML causes too much bloat (quite likely), we could create a
UI "compiler" which would compile the XML into a more compact, more easily
parsed version (syntax/error handling typically adds huge amounts to
parsing code).

All I have to date is libxml http://xmlsoft.org/ with some very limited
definition and very, very limited proof of concept running native on a
linux box (not even using the UI simulator).

gvb

At 11:19 PM 5/1/2003 -0400, bjorn_at_haxx.se wrote:
>ajf wrote:
> > I see at least four different Rockbox audiences and I'm a member of three
> > of them. Each has different needs re playlists, bookmarks, cueing, level
> > setting, etc etc.
> >
> > A Jukebox music player
> > An audiobook player
> > A DJ/party music and sound effects mixer
> > A field recorder
> >
> > Can one 200K piece of software do all these things? Should it?
>
>I think we'll have enough room for it, especially if move some things to
>loadable plugins.
>
>The more tricky thing, however, is the user interface. It's difficuly
>designing
>with a user interface that is optimal for all of these four user categories.
>
> > >>To summarise, for DJ-like operations we need three new settings :
> > >>1. "Play single mode", or "Pause after track" : "Yes", "No"
> > >>2. "Skip silence" : "No", "Leading", "Trailing", "Both"
> > >>3. "Silence threshold" : "-xxx dB"
>
>Number 1 is pretty simple (and not much code), but number 2 & 3 is rather
>difficult to implement with acceptable accuracy. It also would require lots of
>code and processor power.
>
>--
>Björn

**********************************************************************
This e-mail and any files transmitted with it may be confidential and
may be legally privileged or otherwise exempt from disclosure under
applicable law. This e-mail and its files are intended solely for
the individual or entity to whom they are addressed and their content
is the property of Smiths Aerospace. If you are not the intended
recipient, please do not read, copy, use or disclose this communication.
If you have received this e-mail in error please notify the e-mail
administrator at postmaster_at_smiths-aerospace.com and then delete this
e-mail, its files and any copies.

This footnote also confirms that this e-mail message has been scanned
for the presence of known computer viruses.

Smiths addresses are changing! The new addresses are of the form
firstname.lastname_at_smiths-aerospace.com. Please update your address
books! Please begin using the new form immediately.
***********************************************************************

**********************************************************************
This e-mail and any files transmitted with it may be confidential and
may be legally privileged or otherwise exempt from disclosure under
applicable law. This e-mail and its files are intended solely for
the individual or entity to whom they are addressed and their content
is the property of Smiths Aerospace. If you are not the intended
recipient, please do not read, copy, use or disclose this communication.
If you have received this e-mail in error please notify the e-mail
administrator at postmaster_at_smiths-aerospace.com and then delete this
e-mail, its files and any copies.

This footnote also confirms that this e-mail message has been scanned
for the presence of known computer viruses.

Smiths addresses are changing! The new addresses are of the form
firstname.lastname_at_smiths-aerospace.com. Please update your address
books! Please begin using the new form immediately.
***********************************************************************



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa