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:
parent
66b7ade58d
commit
a99a60c1d3
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue