Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: milpop on October 03, 2014, 06:35:15 AM

Title: Fadeout on sleep timer
Post by: milpop on October 03, 2014, 06:35:15 AM
Hello. As I am using lately the sleep timer function a lot, falling to sleep while listening to my favorite music, I was thinking about implementing two functions.
You know, even when you're already asleep, sudden interruption of the music can wake you up again.

So:

1. Option to fadeout current track and then poweroff
2. Option to postpone poweroff until current track is over (poweroff before the next track)

What do you think? It doesn't sound hard to implement.

Take care.
Title: Re: Fadeout on sleep timer
Post by: nick_p on October 03, 2014, 08:55:03 AM
1. Option to fadeout current track and then poweroff

This might be a useful option, independent of whether the power off was initiated by sleep timer or whatever.

It doesn't sound hard to implement.

Do you have any code examples that support this hypothesis? ;)


Title: Re: Fadeout on sleep timer
Post by: nick_p on October 03, 2014, 09:13:45 AM
Have you tried Playback Settings > Fade on Stop/Pause? It worked for me in the simulator when the sleep timer came into effect.
Title: Re: Fadeout on sleep timer
Post by: milpop on October 03, 2014, 12:35:33 PM
I already have active fade on stop/pause. However, this is a relatively short fadeout, while a "natural" song fadeout could be like 20 seconds.
I don't see a connection between these two functions.

Regards.
Title: Re: Fadeout on sleep timer
Post by: nick_p on October 03, 2014, 08:26:41 PM
The connection is a stop is performed before a power off.
Title: Re: Fadeout on sleep timer
Post by: milpop on October 04, 2014, 05:02:18 AM
I mean, as a user I don't see a connection between selecting "fade on stop" for "fade on sleep timeout". These are completely different matters.
I maybe don't like to have "fade on stop", but however would like to have "fade on sleep timeout". Or vice versa.

No matter, you get my point.

Regards.
Title: Re: Fadeout on sleep timer
Post by: saratoga on October 04, 2014, 07:00:35 PM
I mean, as a user I don't see a connection between selecting "fade on stop" for "fade on sleep timeout". These are completely different matters.

I think the idea is that you could use the former to implement the latter. 
Title: Re: Fadeout on sleep timer
Post by: milpop on October 23, 2014, 02:52:13 PM
Do you know the duration of "fade on stop"? How long is the fadeout?