summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-07-24 01:13:30 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-07-24 01:13:30 +0000
commiteb0061411d6fa08ab540107cdbd2906e18e516d7 (patch)
treebf605b7bb1ecf9717b5e1a1b1fc1ae157ba04db4 /apps/gui
parentbd9156a4ada3eb036192f9f82421f38c107f25c9 (diff)
downloadrockbox-eb0061411d6fa08ab540107cdbd2906e18e516d7.tar.gz
rockbox-eb0061411d6fa08ab540107cdbd2906e18e516d7.zip
more cuesheet cleanup. pass the cuesheet into cue functions so they dont have to call audio_current_track()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22020 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps-common.c2
-rw-r--r--apps/gui/gwps.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index da70f0e451..721682f248 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -412,7 +412,7 @@ static void draw_progressbar(struct gui_wps *gwps,
412#endif 412#endif
413 413
414 if (state->id3->cuesheet) 414 if (state->id3->cuesheet)
415 cue_draw_markers(display, state->id3->length, 415 cue_draw_markers(display, state->id3->cuesheet, state->id3->length,
416 pb->x, pb->x + pb->width, y+1, pb->height-2); 416 pb->x, pb->x + pb->width, y+1, pb->height-2);
417} 417}
418 418
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index 154864a280..10c2a6806b 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -151,7 +151,7 @@ static void prev_track(unsigned long skip_thresh)
151 { 151 {
152 if (wps_state.id3->cuesheet) 152 if (wps_state.id3->cuesheet)
153 { 153 {
154 curr_cuesheet_skip(-1, wps_state.id3->elapsed); 154 curr_cuesheet_skip(wps_state.id3->cuesheet, -1, wps_state.id3->elapsed);
155 return; 155 return;
156 } 156 }
157 157
@@ -176,7 +176,7 @@ static void next_track(void)
176 /* take care of if we're playing a cuesheet */ 176 /* take care of if we're playing a cuesheet */
177 if (wps_state.id3->cuesheet) 177 if (wps_state.id3->cuesheet)
178 { 178 {
179 if (curr_cuesheet_skip(1, wps_state.id3->elapsed)) 179 if (curr_cuesheet_skip(wps_state.id3->cuesheet, 1, wps_state.id3->elapsed))
180 { 180 {
181 /* if the result was false, then we really want 181 /* if the result was false, then we really want
182 to skip to the next track */ 182 to skip to the next track */