forked from len0rd/rockbox
Added next/previous track
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1211 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
72315c29fa
commit
a72f95c2ba
5 changed files with 54 additions and 35 deletions
|
|
@ -35,15 +35,15 @@ bool playlist_shuffle = false;
|
|||
|
||||
char now_playing[256];
|
||||
|
||||
char* playlist_next(int type)
|
||||
char* playlist_next(int steps)
|
||||
{
|
||||
int seek = playlist.indices[playlist.index];
|
||||
int seek;
|
||||
int max;
|
||||
int fd;
|
||||
int i;
|
||||
(void)type; /* prevent compiler warning until this is gets used */
|
||||
|
||||
playlist.index = (playlist.index+1) % playlist.amount;
|
||||
playlist.index = (playlist.index+steps) % playlist.amount;
|
||||
seek = playlist.indices[playlist.index];
|
||||
|
||||
fd = open(playlist.filename, O_RDONLY);
|
||||
if(-1 != fd) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue