mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Moved mpeg_play() to after id3 display
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@735 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3facc983d1
commit
f6951bc5cc
1 changed files with 6 additions and 4 deletions
10
apps/play.c
10
apps/play.c
|
@ -39,15 +39,12 @@
|
||||||
|
|
||||||
void playtune(char *dir, char *file)
|
void playtune(char *dir, char *file)
|
||||||
{
|
{
|
||||||
|
static char mfile[256];
|
||||||
char buffer[256];
|
char buffer[256];
|
||||||
mp3entry mp3;
|
mp3entry mp3;
|
||||||
bool good=1;
|
bool good=1;
|
||||||
|
|
||||||
snprintf(buffer, sizeof(buffer), "%s/%s", dir, file);
|
snprintf(buffer, sizeof(buffer), "%s/%s", dir, file);
|
||||||
#if !defined(SIMULATOR) || defined(MPEGPLAY)
|
|
||||||
mpeg_play(buffer);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if(mp3info(&mp3, buffer)) {
|
if(mp3info(&mp3, buffer)) {
|
||||||
DEBUGF("id3 failure!");
|
DEBUGF("id3 failure!");
|
||||||
good=0;
|
good=0;
|
||||||
|
@ -86,6 +83,11 @@ void playtune(char *dir, char *file)
|
||||||
lcd_update();
|
lcd_update();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
snprintf(mfile, sizeof(mfile), "%s/%s", dir, file);
|
||||||
|
#if !defined(SIMULATOR) || defined(MPEGPLAY)
|
||||||
|
mpeg_play(mfile);
|
||||||
|
#endif
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
int key = button_get();
|
int key = button_get();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue