TortugaPower / BookPlayer

Player for your DRM-free audiobooks
GNU General Public License v3.0
1.65k stars 197 forks source link

Feature request: longer or adjustable fade-out on sleep timer #1143

Open mjbaldwin opened 5 months ago

mjbaldwin commented 5 months ago

Feature request

Years ago, the sleep timer stopped audio abruptly when the timer ran out. Then in 2019, a gradual fade-out (a "soft landing") was added, thanks to the request in #404 .

However, the fade-out seems to be only 5 seconds long. I wish it were far longer -- Spotify has a fade-out of 30 seconds I believe, while my preference would be something like 5 minutes.

The reason this is important to me is that when I'm falling asleep, audio cutting out quickly wakes me back up, believe it or not. My brain was used to the voice I was hearing, and then is surprised by it stopping. So it would be really helpful to have a fade-out so gradual my brain can't tell it's happening at all.

Design

The easiest (less desired) change would simply to change from the existing 5 seconds to 30 seconds or 1 minute, for something analagous to Spotify.

However my preferred solution would be to put in Settings tab > [Playback Settings] Player Controls an option either immediately before or after Auto Sleep Timer called Sleep Timer Fade-Out with a range of time values.

I actually think the list of selectable values could be identical to those currently listed in [Skip Intervals] Rewind on the same screen, which range from 2 sec to 5 min. And could default to 30 sec to be consistent with Spotify, although that's less important. (I know Audible also has a sleep timer fade-out but don't know what the duration is.)

mjbaldwin commented 4 months ago

Upon second thought, I think the selectable durations for the fade-out could and should be much longer than the 2 sec to 5 min I previously suggested -- rather going up to a full hour or more. So perhaps:

5s, 30s, 1m, 2m, 5m, 15m, 30m, 1h, 2h