summaryrefslogtreecommitdiffstats
path: root/firmware/mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r--firmware/mpeg.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index ad4b75ea42..645e60fdcd 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -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)