Rockbox mail archiveSubject: Re: Fade on Power on/off
Re: Fade on Power on/off
From: sophana <jobarjo78_at_yahoo.fr>
Date: Mon, 14 Jun 2004 23:22:23 +0200
----- Original Message -----
From: "Mark Bright" <mark_at_redbreva.co.uk>
To: "'Rockbox development'" <rockbox_at_cool.haxx.se>
Sent: Monday, June 14, 2004 8:40 PM
Subject: Fade on Power on/off
> We already have a facility to enable fade on Pause / Stop / Start,
> What's the possibility of adding the same fade up/down functionality on
> Power ON, Power OFF?
> Preferably starting to fade out on OFF pressed rather than released - as
> mentioned in a previous thread
> A simple
> for(i=(mas_codec_readreg(0x10)>>8)&0xFF; i; i--)
> mas_codec_writereg(0x10<<8, i);
> In power_off() in power.c gives a nice fade out, but I can't see where to
> the reverse for power ON.
this code will work only for sleep timer. pressing off for a long time shuts
the unit off by hardware
I don't think there is time to fade or do anything before the power is cut
off, or rockbox will have to detect long off pressure before the power if
My player does shut down in less than 1s (maybe half a second?) when I press
stop. this is not enough.
> So, does anyone else think this is a good idea, and can someone tell me
> where to do the power on fade?
it is in the 'resume' code don't you think?
Actually there is a setting for resuming: yes, no, ask. maybe we could add
Received on 2004-06-14