summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2008-02-26 17:15:30 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2008-02-26 17:15:30 +0000
commitea9e02b4428e0fb5e69f17511d809f74dbd3b273 (patch)
tree93b227ccb41745e51fc3a23a0c076ca32e0a44de /apps/playback.c
parent7bf5722a9dd6d65b1b947447ff0383b5a07cdb0b (diff)
Make audio_next_track use the wps_offset value.
This removes the delay between the current track title change and the next track title change in the WPS on a track skip. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16423 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/playback.c b/apps/playback.c
index cca5b73247..0f0f70e6fd 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -553,7 +553,8 @@ struct mp3entry* audio_current_track(void)
struct mp3entry* audio_next_track(void)
{
- int next_idx = track_ridx;
+ int next_idx;
+ int offset = ci.new_track + wps_offset;
if (!audio_have_tracks())
return NULL;
@@ -565,7 +566,7 @@ struct mp3entry* audio_next_track(void)
return &curtrack_id3;
}
- next_idx = (next_idx + 1) & MAX_TRACK_MASK;
+ next_idx = (track_ridx + offset + 1) & MAX_TRACK_MASK;
if (next_idx == track_widx)
{