Rockbox Technical Forums

Rockbox General => Rockbox General Discussion => Topic started by: GSwarthout on June 29, 2009, 03:09:55 PM

Title: Fade on Stop/Pause with track backup?
Post by: GSwarthout on June 29, 2009, 03:09:55 PM
I currently have my "Fade on Stop/Pause" option turned on.  How it works is that on pause/stop the song fades out for a sec or so and then fades back in for a sec or so on play/resume.  Is there any way to get RockBox to rewind the track just enough so that the full volume parts are contiguous so that nothing gets lost in the fade?

For example (assuming a 1-sec fade), I hit pause at the 30-second mark and the 30:31 (from the 30-second mark to the 31-second mark) part of the song is heard at decreasing volume.  When I unpause the 31:32 part is heard at ascending volume.  In essense, the 30:32 part of the song is never heard at full volume.

What I would like to see happen is the fade out occur as it does now, but the fade in would start at the 29-second mark so that it is back to full volume at the 30-second mark, right where the full volume playback left off.

Is there any way to do this now?  Should I put this in as a feature request?

Greg

PS:  The impetus for this is that I listen to audiobooks and I lose a couple of words during pause/resume.  I realize that I could turn off the pause-fading, but I like it to happen when I'm not in an audiobook.
Title: Re: Fade on Stop/Pause with track backup?
Post by: evilnick on June 29, 2009, 03:19:17 PM
As a not-quite-elegant solution, you might want to try having a .cfg file for audiobooks that sets Fade on pause to Off and another for other music that sets it to On.

Then if you want to listen to music, you "play" the music.cfg file before loading up the playlist, and vice versa for audiobooks.

I'm pretty sure that I've seen a similar option for players that can detect when headphones are removed (certainly the Beast) and will pause the song and then "back up" a configurable number of seconds. I'm not sure whether this was an official feature or a patch though.
Title: Re: Fade on Stop/Pause with track backup?
Post by: AlexP on June 29, 2009, 04:23:56 PM
The pause on headphone unplug, and then subsequent configurable rewind on reinsertion is in Rockbox.  The headphone pause can clearly only be done on targets that detect this, but I think extending the configurable rewind to generally resuming after pause for whatever reason has merit.
Title: Re: Fade on Stop/Pause with track backup?
Post by: Llorean on June 29, 2009, 04:56:06 PM
A significant problem with the configurable rewind currently is there are conditions where it has very negative effects.

In long VBR MP3 files (and I assume other files where seeks are inaccurate, if there are any), a rewind of 2 seconds backward can actually result in Rockbox playing some point several seconds (or in many-hour files, over a minute) forward in the file.
Title: Re: Fade on Stop/Pause with track backup?
Post by: BruceHP on June 29, 2009, 06:53:11 PM
Or you could set "Fade on stop" as a Quickscreen option.