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:
parent
7bf5722a9d
commit
ea9e02b442
1 changed files with 3 additions and 2 deletions
|
@ -553,7 +553,8 @@ struct mp3entry* audio_current_track(void)
|
||||||
|
|
||||||
struct mp3entry* audio_next_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())
|
if (!audio_have_tracks())
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -565,7 +566,7 @@ struct mp3entry* audio_next_track(void)
|
||||||
return &curtrack_id3;
|
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)
|
if (next_idx == track_widx)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue