diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-05-24 16:12:16 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-05-24 16:12:16 +0000 |
commit | 39295b2035fac88740412b0abfa4b2479d09a2cf (patch) | |
tree | 513a940b1934e55b23bf2e51058cc821b15c86ae /apps/play.c | |
parent | 92597ea7e08b0c196aea72fcf7845c828c2341a6 (diff) | |
download | rockbox-39295b2035fac88740412b0abfa4b2479d09a2cf.tar.gz rockbox-39295b2035fac88740412b0abfa4b2479d09a2cf.zip |
Added mpeg_play() for target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@704 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/play.c')
-rw-r--r-- | apps/play.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/play.c b/apps/play.c index 71292861c9..2348f63d19 100644 --- a/apps/play.c +++ b/apps/play.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "debug.h" | 29 | #include "debug.h" |
30 | 30 | ||
31 | #include "id3.h" | 31 | #include "id3.h" |
32 | #include "mpeg.h" | ||
32 | 33 | ||
33 | #ifdef MPEG_PLAY | 34 | #ifdef MPEG_PLAY |
34 | #include "mpegplay.h" | 35 | #include "mpegplay.h" |
@@ -43,6 +44,7 @@ void playtune(char *dir, char *file) | |||
43 | bool good=1; | 44 | bool good=1; |
44 | 45 | ||
45 | snprintf(buffer, sizeof(buffer), "%s/%s", dir, file); | 46 | snprintf(buffer, sizeof(buffer), "%s/%s", dir, file); |
47 | mpeg_play(buffer); | ||
46 | 48 | ||
47 | if(mp3info(&mp3, buffer)) { | 49 | if(mp3info(&mp3, buffer)) { |
48 | DEBUGF("id3 failure!"); | 50 | DEBUGF("id3 failure!"); |
@@ -82,12 +84,6 @@ void playtune(char *dir, char *file) | |||
82 | lcd_update(); | 84 | lcd_update(); |
83 | #endif | 85 | #endif |
84 | 86 | ||
85 | #ifdef MPEG_PLAY | ||
86 | snprintf(buffer,sizeof(buffer), "%s/%s", dir, file); | ||
87 | mpeg_play(buffer); | ||
88 | return; | ||
89 | #endif | ||
90 | |||
91 | while(1) { | 87 | while(1) { |
92 | int key = button_get(); | 88 | int key = button_get(); |
93 | 89 | ||