From 5aec3c2400fdd47c7b2098f1a1c5506a6aa3156c Mon Sep 17 00:00:00 2001 From: Michael Hohmuth Date: Fri, 13 May 2011 22:28:47 +0000 Subject: FS#11931 part 2: Allow a short rewind when playback is paused. Patch by John Morris. This patch adds an option to rewind the current track by a few seconds when it is paused, irrespective of what has caused the pause. This is useful for audiobooks and podcasts to allow the listener to recall where the track was left off. The patch subsumes the existing rewind-on-headphone-unplug feature and extends it to all invocations of pause: play/pause button (or touch area), headphone removal, and power-supply unplug in car-adapter mode. It also subsumes FS#9448 (rewind on fade). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29876 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'apps/misc.c') diff --git a/apps/misc.c b/apps/misc.c index d72d7a4da0..b027215ccc 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -504,19 +504,6 @@ static void unplug_change(bool inserted) { headphone_caused_pause = true; pause_action(false, false); - - if (global_settings.unplug_rw) - { -#if (CONFIG_CODEC == SWCODEC) - audio_pre_ff_rewind(); -#endif - if (audio_current_track()->elapsed > - (unsigned long)(global_settings.unplug_rw*1000)) - audio_ff_rewind(audio_current_track()->elapsed - - (global_settings.unplug_rw*1000)); - else - audio_ff_rewind(0); - } } } } -- cgit v1.2.3