summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-08-08 17:48:21 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-08-08 17:48:21 +0000
commita99a60c1d3109b107c4ee5165544a5e9c9fab108 (patch)
tree9ead782a63dfee9854df55cb7f4b2e6c5f5fc33c
parent66b7ade58ddcd7991a51fbcb3c4ba87596d4511a (diff)
downloadrockbox-a99a60c1d3109b107c4ee5165544a5e9c9fab108.tar.gz
rockbox-a99a60c1d3109b107c4ee5165544a5e9c9fab108.zip
Added support for next/prev in simulators
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1621 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/mpeg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 565fb5d075..efe7570bff 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -1091,6 +1091,9 @@ void mpeg_next(void)
1091#ifndef SIMULATOR 1091#ifndef SIMULATOR
1092 queue_post(&mpeg_queue, MPEG_NEXT, NULL); 1092 queue_post(&mpeg_queue, MPEG_NEXT, NULL);
1093#else 1093#else
1094 char* file = playlist_next(1);
1095 mp3info(&taginfo, file);
1096 current_track_counter++;
1094 playing = true; 1097 playing = true;
1095#endif 1098#endif
1096} 1099}
@@ -1100,6 +1103,9 @@ void mpeg_prev(void)
1100#ifndef SIMULATOR 1103#ifndef SIMULATOR
1101 queue_post(&mpeg_queue, MPEG_PREV, NULL); 1104 queue_post(&mpeg_queue, MPEG_PREV, NULL);
1102#else 1105#else
1106 char* file = playlist_next(-1);
1107 mp3info(&taginfo, file);
1108 current_track_counter--;
1103 playing = true; 1109 playing = true;
1104#endif 1110#endif
1105} 1111}