forked from len0rd/rockbox
Added mpeg_next_track(), which returns a pointer to the id3 struct of the
upcoming song (if available). Now we just need a WPS patch to make it possibly to display info based on this! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4240 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ce1c93d628
commit
d815ad6035
2 changed files with 13 additions and 0 deletions
|
@ -1960,6 +1960,18 @@ struct mp3entry* mpeg_current_track()
|
|||
#endif /* #ifdef SIMULATOR */
|
||||
}
|
||||
|
||||
struct mp3entry* mpeg_next_track()
|
||||
{
|
||||
#ifdef SIMULATOR
|
||||
return &taginfo;
|
||||
#else
|
||||
if(num_tracks_in_memory() > 1)
|
||||
return &(id3tags[(tag_read_idx+1) & MAX_ID3_TAGS_MASK]->id3);
|
||||
else
|
||||
return NULL;
|
||||
#endif /* #ifdef SIMULATOR */
|
||||
}
|
||||
|
||||
bool mpeg_has_changed_track(void)
|
||||
{
|
||||
if(last_track_counter != current_track_counter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue