summaryrefslogtreecommitdiffstats
path: root/uisimulator/play.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/play.c')
-rw-r--r--uisimulator/play.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/uisimulator/play.c b/uisimulator/play.c
index 7031fd208e..f9877134eb 100644
--- a/uisimulator/play.c
+++ b/uisimulator/play.c
@@ -29,6 +29,10 @@
#include "id3.h"
+#ifdef MPEG_PLAY
+#include "x11/mpegplay.h"
+#endif
+
#define LINE_Y 8 /* initial line */
#define LINE_HEIGTH 8 /* line height in pixels */
@@ -68,6 +72,12 @@ void playtune(char *dir, char *file)
lcd_update();
#endif
+#ifdef MPEG_PLAY
+ sprintf(buffer, "%s/%s", dir, file);
+ mpeg_play(buffer);
+ return;
+#endif
+
while(1) {
int key = button_get();