summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
authorMichael Hohmuth <sideral@rockbox.org>2011-05-13 22:28:47 +0000
committerMichael Hohmuth <sideral@rockbox.org>2011-05-13 22:28:47 +0000
commit5aec3c2400fdd47c7b2098f1a1c5506a6aa3156c (patch)
tree875e48e0cf80f749a79d138b8787d84568171f70 /apps/misc.c
parent0a070c54202d946b37946343ea2f083fee82871a (diff)
downloadrockbox-5aec3c2400fdd47c7b2098f1a1c5506a6aa3156c.tar.gz
rockbox-5aec3c2400fdd47c7b2098f1a1c5506a6aa3156c.zip
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
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c13
1 files changed, 0 insertions, 13 deletions
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)
504 { 504 {
505 headphone_caused_pause = true; 505 headphone_caused_pause = true;
506 pause_action(false, false); 506 pause_action(false, false);
507
508 if (global_settings.unplug_rw)
509 {
510#if (CONFIG_CODEC == SWCODEC)
511 audio_pre_ff_rewind();
512#endif
513 if (audio_current_track()->elapsed >
514 (unsigned long)(global_settings.unplug_rw*1000))
515 audio_ff_rewind(audio_current_track()->elapsed -
516 (global_settings.unplug_rw*1000));
517 else
518 audio_ff_rewind(0);
519 }
520 } 507 }
521 } 508 }
522 } 509 }