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: Voice UI, step 3 done (numerical settings spoken)

Re: Voice UI, step 3 done (numerical settings spoken)

From: Björn Stenberg <bjorn_at_haxx.se>
Date: Mon, 22 Mar 2004 10:44:51 +0100

[IDC]Dragon wrote:
> > - I think the voice file should be buffered by tree.c if the mp3 buffer is
> > not occupied. Then there would be no delay when entering the menu. And
> > since the disk is mostly spinning anyway when you enter tree.c witout mp3
> > playing (i.e. at boot and when pressing STOP), we'll actually get fewer
> spinups
> > in total.
>
> I'm not sure I understand how this would improve. I don't want to load the
> voice file without necessity, and not generally on boot.

Why not? It takes less than a second at boot, and then it's available immediately without having to spin up again.

The gain is getting voice immediately when you enter the menu, without having to wait several seconds for the disk to first spin up and then load the file.

> There's one change I want to do against the existing implementation:
> The check if the voice file is present will be moved to talk_init(). At the
> init time, the disk is spinning anyway. Currently this is done when the first
> clip is needed, i.e. when entering the menu for the first time. Users
> without the voice file get an unnecessary spinup here.

My point is why not read the whole voice file at that point? The disk is already spinning, so it will only take a second. Waiting until the voice is actually needed means having to spin up again, thus spending several extra seconds waiting.

-- 
Björn
_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2004-03-22

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