Rockbox

Tasklist

FS#10856 - Skip to previous track inconsistent when using cuesheet

Attached to Project: Rockbox
Opened by Michael Chicoine (mc2739) - Tuesday, 15 December 2009, 14:11 GMT
Last edited by Michael Chicoine (mc2739) - Wednesday, 06 January 2010, 14:56 GMT
Task Type Patches
Category User Interface
Status Closed
Assigned To Michael Chicoine (mc2739)
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Skipping to the previous track without cuesheet support enabled works as follows:
If track elapsed time is less than 3 seconds, skip to previous track
If track elapsed time is 3 seconds or more, skip to the start of current track

Skipping to the previous track with cuesheet support enabled currently works as follows:
If first segment elapsed time is less than 3 seconds, skip to previous track
If first segment elapsed time is 3 seconds or more, skip to the start of first segment
In any other segment after the first, skip to the start of the previous segment

This patch makes skip previous consistent on a track with cuesheet support. If skip previous is pressed in any segment before 3 seconds have elapsed, skip to the previous segment (or previous track if in the first segment). If skip previous is pressed in any segment with 3 or more seconds elapsed, skip to the start of the current segment.
This task depends upon

Closed by  Michael Chicoine (mc2739)
Wednesday, 06 January 2010, 14:56 GMT
Reason for closing:  Accepted
Additional comments about closing:  Committed in r24191
Comment by Jonathan Gordon (jdgordon) - Wednesday, 23 December 2009, 04:20 GMT
where is DEFAULT_SKIP_TRESH defined? I dont see any reason that needs to be passed into the skip function instead of used directly.
Comment by Michael Chicoine (mc2739) - Wednesday, 23 December 2009, 12:26 GMT
DEFAULT_SKIP_TRESH is defined in gui/wps.c (line 74).
Comment by Michael Chicoine (mc2739) - Wednesday, 23 December 2009, 15:59 GMT
Updated patch:

1. moved DEFAULT_SKIP_TRESH to gui/wps.h
2. added #include "gui/wps.h" in cuesheet.c

Loading...