diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-06-25 13:26:04 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-06-25 13:26:04 +0000 |
commit | bb9aaf50654bb32184d289b18f110cf9fd6687d1 (patch) | |
tree | 188943fa5d709086a89de94f1b3f98ed12979bea /uisimulator | |
parent | 3f9c7c2ab5edef46346fed58807307ea4499b39c (diff) | |
download | rockbox-bb9aaf50654bb32184d289b18f110cf9fd6687d1.tar.gz rockbox-bb9aaf50654bb32184d289b18f110cf9fd6687d1.zip |
A step towards WPS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1184 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/x11/Makefile | 5 | ||||
-rw-r--r-- | uisimulator/x11/mpeg.c | 18 |
2 files changed, 21 insertions, 2 deletions
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile index 9681ad521e..d3b446f5c9 100644 --- a/uisimulator/x11/Makefile +++ b/uisimulator/x11/Makefile | |||
@@ -76,7 +76,7 @@ APPCFLAGS = $(DEBUG) $(DEFINES) $(APPINCLUDES) -W -Wall | |||
76 | FIRMSRCS = chartables.c lcd.c sprintf.c id3.c debug.c settings.c | 76 | FIRMSRCS = chartables.c lcd.c sprintf.c id3.c debug.c settings.c |
77 | 77 | ||
78 | APPS = main.c tree.c play.c menu.c credits.c main_menu.c\ | 78 | APPS = main.c tree.c play.c menu.c credits.c main_menu.c\ |
79 | playlist.c showtext.c | 79 | playlist.c showtext.c wps.c |
80 | 80 | ||
81 | MENUS = games_menu.c screensavers_menu.c settings_menu.c sound_menu.c | 81 | MENUS = games_menu.c screensavers_menu.c settings_menu.c sound_menu.c |
82 | 82 | ||
@@ -182,6 +182,9 @@ $(OBJDIR)/boxes.o: $(RECDIR)/boxes.c | |||
182 | $(OBJDIR)/main.o: $(APPDIR)/main.c | 182 | $(OBJDIR)/main.o: $(APPDIR)/main.c |
183 | $(CC) $(APPCFLAGS) -c $< -o $@ | 183 | $(CC) $(APPCFLAGS) -c $< -o $@ |
184 | 184 | ||
185 | $(OBJDIR)/wps.o: $(APPDIR)/wps.c | ||
186 | $(CC) $(APPCFLAGS) -c $< -o $@ | ||
187 | |||
185 | $(OBJDIR)/bmp.o: $(RECDIR)/bmp.c | 188 | $(OBJDIR)/bmp.o: $(RECDIR)/bmp.c |
186 | $(CC) $(APPCFLAGS) -c $< -o $@ | 189 | $(CC) $(APPCFLAGS) -c $< -o $@ |
187 | 190 | ||
diff --git a/uisimulator/x11/mpeg.c b/uisimulator/x11/mpeg.c index 0f3680d737..e1bce1e22c 100644 --- a/uisimulator/x11/mpeg.c +++ b/uisimulator/x11/mpeg.c | |||
@@ -16,11 +16,13 @@ | |||
16 | * KIND, either express or implied. | 16 | * KIND, either express or implied. |
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | 19 | #include <stdbool.h> | |
20 | #include "debug.h" | 20 | #include "debug.h" |
21 | #include "id3.h" | ||
21 | 22 | ||
22 | /* This file is for emulating some of the mpeg controlling functions of | 23 | /* This file is for emulating some of the mpeg controlling functions of |
23 | the target */ | 24 | the target */ |
25 | static struct mp3entry dummy; | ||
24 | 26 | ||
25 | void mpeg_volume(void) | 27 | void mpeg_volume(void) |
26 | { | 28 | { |
@@ -43,6 +45,20 @@ void mpeg_play(char *tune) | |||
43 | { | 45 | { |
44 | DEBUGF("We instruct the MPEG thread to play %s for us\n", | 46 | DEBUGF("We instruct the MPEG thread to play %s for us\n", |
45 | tune); | 47 | tune); |
48 | mp3info(&dummy, tune); | ||
49 | } | ||
50 | |||
51 | void mpeg_pause(void) | ||
52 | { | ||
53 | } | ||
54 | |||
55 | void mpeg_resume(void) | ||
56 | { | ||
46 | } | 57 | } |
47 | 58 | ||
48 | #endif | 59 | #endif |
60 | |||
61 | struct mp3entry* mpeg_current_track(void) | ||
62 | { | ||
63 | return &dummy; | ||
64 | } | ||