Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: [PATCH] - Back button goes to start of song
From: Lee Marlow (lmarlow_at_yahoo.com)
Date: 2002-08-21


Here is a rudimentary patch that will start the
current song over when the back button is hit in the
WPS. To get to the previous song, hit the back button
during the first two seconds of the song.

Enjoy

Lee
lmarlow_at_yahoo.com
irc: mecraw

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

Index: wps.c
===================================================================
RCS file: /cvsroot/rockbox/apps/wps.c,v
retrieving revision 1.85
diff -u -r1.85 wps.c
--- wps.c 21 Aug 2002 11:40:34 -0000 1.85
+++ wps.c 21 Aug 2002 16:10:51 -0000
@@ -676,7 +676,13 @@
                     else
 #endif
                     {
- mpeg_prev();
+ if (id3->elapsed < 2*1000)
+ mpeg_prev();
+ else {
+ mpeg_pause();
+ mpeg_ff_rewind(-(id3->elapsed));
+ mpeg_resume();
+ }
                     }
                 }
 #ifdef HAVE_PLAYER_KEYPAD



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa