diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-30 14:37:40 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-30 14:37:40 +0000 |
commit | adbce88570d9d4bb740b6ac82842c8b2af0adfe0 (patch) | |
tree | 62dcc77254464a1ccc972dd88b32b37ee5b72a72 /uisimulator/x11 | |
parent | cb30e5422fec01cca2377cd8179d76a272707664 (diff) | |
download | rockbox-adbce88570d9d4bb740b6ac82842c8b2af0adfe0.tar.gz rockbox-adbce88570d9d4bb740b6ac82842c8b2af0adfe0.zip |
Now uses firmware/mpeg.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1269 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11')
-rw-r--r-- | uisimulator/x11/Makefile | 10 | ||||
-rw-r--r-- | uisimulator/x11/mpeg.c | 72 |
2 files changed, 8 insertions, 74 deletions
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile index f6b22e243d..73d46bf9a4 100644 --- a/uisimulator/x11/Makefile +++ b/uisimulator/x11/Makefile | |||
@@ -73,7 +73,7 @@ CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall | |||
73 | 73 | ||
74 | APPCFLAGS = $(DEBUG) $(DEFINES) $(APPINCLUDES) -W -Wall | 74 | APPCFLAGS = $(DEBUG) $(DEFINES) $(APPINCLUDES) -W -Wall |
75 | 75 | ||
76 | FIRMSRCS = chartables.c lcd.c sprintf.c id3.c debug.c | 76 | FIRMSRCS = chartables.c lcd.c sprintf.c id3.c debug.c usb.c mpeg.c |
77 | 77 | ||
78 | APPS = main.c tree.c menu.c credits.c main_menu.c\ | 78 | APPS = main.c tree.c menu.c credits.c main_menu.c\ |
79 | playlist.c showtext.c wps.c settings.c | 79 | playlist.c showtext.c wps.c settings.c |
@@ -84,7 +84,7 @@ ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP) | |||
84 | APPS += tetris.c sokoban.c bounce.c boxes.c icons.c bmp.c | 84 | APPS += tetris.c sokoban.c bounce.c boxes.c icons.c bmp.c |
85 | endif | 85 | endif |
86 | 86 | ||
87 | SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c mpeg.c \ | 87 | SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c \ |
88 | button-x11.c io.c thread.c $(APPS) $(MENUS) $(FIRMSRCS) | 88 | button-x11.c io.c thread.c $(APPS) $(MENUS) $(FIRMSRCS) |
89 | 89 | ||
90 | ifdef MPEG_PLAY | 90 | ifdef MPEG_PLAY |
@@ -212,9 +212,15 @@ $(OBJDIR)/id3.o: $(FIRMWAREDIR)/id3.c | |||
212 | $(OBJDIR)/debug.o: $(FIRMWAREDIR)/debug.c | 212 | $(OBJDIR)/debug.o: $(FIRMWAREDIR)/debug.c |
213 | $(CC) $(CFLAGS) -c $< -o $@ | 213 | $(CC) $(CFLAGS) -c $< -o $@ |
214 | 214 | ||
215 | $(OBJDIR)/mpeg.o: $(FIRMWAREDIR)/mpeg.c | ||
216 | $(CC) $(CFLAGS) -c $< -o $@ | ||
217 | |||
215 | $(OBJDIR)/sprintf.o: $(COMMON)/sprintf.c | 218 | $(OBJDIR)/sprintf.o: $(COMMON)/sprintf.c |
216 | $(CC) $(APPCFLAGS) -c $< -o $@ | 219 | $(CC) $(APPCFLAGS) -c $< -o $@ |
217 | 220 | ||
221 | $(OBJDIR)/usb.o: $(FIRMWAREDIR)/usb.c | ||
222 | $(CC) $(APPCFLAGS) -c $< -o $@ | ||
223 | |||
218 | 224 | ||
219 | # these ones are simulator-specific | 225 | # these ones are simulator-specific |
220 | 226 | ||
diff --git a/uisimulator/x11/mpeg.c b/uisimulator/x11/mpeg.c deleted file mode 100644 index 247a0d2efb..0000000000 --- a/uisimulator/x11/mpeg.c +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 Daniel Stenberg | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #include <stdbool.h> | ||
20 | #include "debug.h" | ||
21 | #include "id3.h" | ||
22 | |||
23 | /* This file is for emulating some of the mpeg controlling functions of | ||
24 | the target */ | ||
25 | static struct mp3entry dummy; | ||
26 | |||
27 | void mpeg_volume(void) | ||
28 | { | ||
29 | } | ||
30 | |||
31 | void mpeg_bass(void) | ||
32 | { | ||
33 | } | ||
34 | |||
35 | void mpeg_treble(void) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | void mpeg_stop(void) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | void mpeg_prev(void) | ||
44 | { | ||
45 | } | ||
46 | |||
47 | void mpeg_next(void) | ||
48 | { | ||
49 | } | ||
50 | |||
51 | #ifndef MPEGPLAY | ||
52 | void mpeg_play(char *tune) | ||
53 | { | ||
54 | DEBUGF("We instruct the MPEG thread to play %s for us\n", | ||
55 | tune); | ||
56 | mp3info(&dummy, tune); | ||
57 | } | ||
58 | |||
59 | void mpeg_pause(void) | ||
60 | { | ||
61 | } | ||
62 | |||
63 | void mpeg_resume(void) | ||
64 | { | ||
65 | } | ||
66 | |||
67 | #endif | ||
68 | |||
69 | struct mp3entry* mpeg_current_track(void) | ||
70 | { | ||
71 | return &dummy; | ||
72 | } | ||