diff options
Diffstat (limited to 'uisimulator/win32')
-rw-r--r-- | uisimulator/win32/mpeg.c | 155 |
1 files changed, 0 insertions, 155 deletions
diff --git a/uisimulator/win32/mpeg.c b/uisimulator/win32/mpeg.c deleted file mode 100644 index 11fa98c02b..0000000000 --- a/uisimulator/win32/mpeg.c +++ /dev/null | |||
@@ -1,155 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 Felix Arends | ||
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 | |||
20 | /* This file is for emulating some of the mpeg controlling functions of | ||
21 | the target */ | ||
22 | |||
23 | #include "debug.h" | ||
24 | #include "mpeg.h" | ||
25 | |||
26 | static char *units[] = | ||
27 | { | ||
28 | "%", /* Volume */ | ||
29 | "%", /* Bass */ | ||
30 | "%" /* Treble */ | ||
31 | }; | ||
32 | |||
33 | static int numdecimals[] = | ||
34 | { | ||
35 | 0, /* Volume */ | ||
36 | 0, /* Bass */ | ||
37 | 0 /* Treble */ | ||
38 | }; | ||
39 | |||
40 | static int minval[] = | ||
41 | { | ||
42 | 0, /* Volume */ | ||
43 | 0, /* Bass */ | ||
44 | 0 /* Treble */ | ||
45 | }; | ||
46 | |||
47 | static int maxval[] = | ||
48 | { | ||
49 | 50, /* Volume */ | ||
50 | 50, /* Bass */ | ||
51 | 50 /* Treble */ | ||
52 | }; | ||
53 | |||
54 | static int defaultval[] = | ||
55 | { | ||
56 | 70/2, /* Volume */ | ||
57 | 50/2, /* Bass */ | ||
58 | 50/2 /* Treble */ | ||
59 | }; | ||
60 | |||
61 | char *mpeg_sound_unit(int setting) | ||
62 | { | ||
63 | return units[setting]; | ||
64 | } | ||
65 | |||
66 | int mpeg_sound_numdecimals(int setting) | ||
67 | { | ||
68 | return numdecimals[setting]; | ||
69 | } | ||
70 | |||
71 | int mpeg_sound_min(int setting) | ||
72 | { | ||
73 | return minval[setting]; | ||
74 | } | ||
75 | |||
76 | int mpeg_sound_max(int setting) | ||
77 | { | ||
78 | return maxval[setting]; | ||
79 | } | ||
80 | |||
81 | int mpeg_sound_default(int setting) | ||
82 | { | ||
83 | return defaultval[setting]; | ||
84 | } | ||
85 | |||
86 | void mpeg_volume(void) | ||
87 | { | ||
88 | } | ||
89 | |||
90 | void mpeg_bass(void) | ||
91 | { | ||
92 | } | ||
93 | |||
94 | void mpeg_treble(void) | ||
95 | { | ||
96 | } | ||
97 | |||
98 | void mpeg_stop(void) | ||
99 | { | ||
100 | } | ||
101 | |||
102 | void mpeg_resume(void) | ||
103 | { | ||
104 | } | ||
105 | |||
106 | void mpeg_pause(void) | ||
107 | { | ||
108 | } | ||
109 | |||
110 | void mpeg_next (void) | ||
111 | { | ||
112 | } | ||
113 | |||
114 | void mpeg_prev (void) | ||
115 | { | ||
116 | } | ||
117 | |||
118 | struct mp3entry* mpeg_current_track(void) | ||
119 | { | ||
120 | return 0; | ||
121 | } | ||
122 | |||
123 | void mpeg_sound_set(int setting, int value) | ||
124 | { | ||
125 | } | ||
126 | |||
127 | #ifndef MPEGPLAY | ||
128 | void mpeg_play(char *tune) | ||
129 | { | ||
130 | DEBUGF("We instruct the MPEG thread to play %s for us\n", | ||
131 | tune); | ||
132 | } | ||
133 | |||
134 | int mpeg_val2phys(int setting, int value) | ||
135 | { | ||
136 | int result = 0; | ||
137 | |||
138 | switch(setting) | ||
139 | { | ||
140 | case SOUND_VOLUME: | ||
141 | result = value * 2; | ||
142 | break; | ||
143 | |||
144 | case SOUND_BASS: | ||
145 | result = value * 2; | ||
146 | break; | ||
147 | |||
148 | case SOUND_TREBLE: | ||
149 | result = value * 2; | ||
150 | break; | ||
151 | } | ||
152 | return result; | ||
153 | } | ||
154 | |||
155 | #endif | ||