1
0
Fork 0
forked from len0rd/rockbox

Added support for next/prev in simulators

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1621 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-08-08 17:48:21 +00:00
parent 66b7ade58d
commit a99a60c1d3

View file

@ -1091,6 +1091,9 @@ void mpeg_next(void)
#ifndef SIMULATOR
queue_post(&mpeg_queue, MPEG_NEXT, NULL);
#else
char* file = playlist_next(1);
mp3info(&taginfo, file);
current_track_counter++;
playing = true;
#endif
}
@ -1100,6 +1103,9 @@ void mpeg_prev(void)
#ifndef SIMULATOR
queue_post(&mpeg_queue, MPEG_PREV, NULL);
#else
char* file = playlist_next(-1);
mp3info(&taginfo, file);
current_track_counter--;
playing = true;
#endif
}