forked from len0rd/rockbox
Changed prototype of playtune
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@926 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6229aa2e6f
commit
d044f5575f
3 changed files with 8 additions and 7 deletions
11
apps/play.c
11
apps/play.c
|
@ -38,15 +38,16 @@
|
|||
|
||||
#define LINE_Y 1 /* initial line */
|
||||
|
||||
void playtune(char *dir, char *file)
|
||||
void playtune(char *filename)
|
||||
{
|
||||
static char mfile[256];
|
||||
char buffer[256];
|
||||
mp3entry mp3;
|
||||
bool good=1;
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
char buffer[256];
|
||||
#endif
|
||||
|
||||
snprintf(buffer, sizeof(buffer), "%s/%s", dir, file);
|
||||
if(mp3info(&mp3, buffer)) {
|
||||
if(mp3info(&mp3, filename)) {
|
||||
DEBUGF("id3 failure!");
|
||||
good=0;
|
||||
}
|
||||
|
@ -84,7 +85,7 @@ void playtune(char *dir, char *file)
|
|||
lcd_update();
|
||||
#endif
|
||||
|
||||
snprintf(mfile, sizeof(mfile), "%s/%s", dir, file);
|
||||
strncpy(mfile, filename, 256);
|
||||
mpeg_play(mfile);
|
||||
|
||||
while(1) {
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
void playtune(char *dir, char *file);
|
||||
void playtune(char *filename);
|
||||
|
|
|
@ -310,7 +310,7 @@ bool dirbrowse(char *root)
|
|||
else {
|
||||
|
||||
playing = 1;
|
||||
playtune(currdir, dircacheptr[dircursor+start]->name);
|
||||
playtune(buf);
|
||||
playing = 0;
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
lcd_setmargins(0, MARGIN_Y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue