1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Nicolas Pennequin 2008-02-26 17:15:30 +00:00
parent 7bf5722a9d
commit ea9e02b442

View file

@ -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)
{