|
Rockbox mail archiveSubject: [PATCH] - Back button goes to start of song[PATCH] - Back button goes to start of song
From: Lee Marlow <lmarlow_at_yahoo.com>
Date: Wed, 21 Aug 2002 09:58:05 -0700 (PDT) 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 _at__at_ -676,7 +676,13 _at__at_ 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 Received on 2002-08-21 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |