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
|
#ifndef SIMULATOR
|
||||||
queue_post(&mpeg_queue, MPEG_NEXT, NULL);
|
queue_post(&mpeg_queue, MPEG_NEXT, NULL);
|
||||||
#else
|
#else
|
||||||
|
char* file = playlist_next(1);
|
||||||
|
mp3info(&taginfo, file);
|
||||||
|
current_track_counter++;
|
||||||
playing = true;
|
playing = true;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
@ -1100,6 +1103,9 @@ void mpeg_prev(void)
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
queue_post(&mpeg_queue, MPEG_PREV, NULL);
|
queue_post(&mpeg_queue, MPEG_PREV, NULL);
|
||||||
#else
|
#else
|
||||||
|
char* file = playlist_next(-1);
|
||||||
|
mp3info(&taginfo, file);
|
||||||
|
current_track_counter--;
|
||||||
playing = true;
|
playing = true;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue