summaryrefslogtreecommitdiff
path: root/uisimulator/win32
diff options
context:
space:
mode:
authorFelix Arends <edx@rockbox.org>2002-10-16 16:45:38 +0000
committerFelix Arends <edx@rockbox.org>2002-10-16 16:45:38 +0000
commit61a32e9ea35fac05e8dbf486cd1dc57574ab2be7 (patch)
treee35d57f9120fa0c7122531b9e2cdc5838952bace /uisimulator/win32
parent12c1981728dcacf1e82d0d3c5044c6fb1b343091 (diff)
downloadrockbox-61a32e9ea35fac05e8dbf486cd1dc57574ab2be7.tar.gz
rockbox-61a32e9ea35fac05e8dbf486cd1dc57574ab2be7.zip
we dont need this file any longer!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2687 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32')
-rw-r--r--uisimulator/win32/mpeg.c155
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
26static char *units[] =
27{
28 "%", /* Volume */
29 "%", /* Bass */
30 "%" /* Treble */
31};
32
33static int numdecimals[] =
34{
35 0, /* Volume */
36 0, /* Bass */
37 0 /* Treble */
38};
39
40static int minval[] =
41{
42 0, /* Volume */
43 0, /* Bass */
44 0 /* Treble */
45};
46
47static int maxval[] =
48{
49 50, /* Volume */
50 50, /* Bass */
51 50 /* Treble */
52};
53
54static int defaultval[] =
55{
56 70/2, /* Volume */
57 50/2, /* Bass */
58 50/2 /* Treble */
59};
60
61char *mpeg_sound_unit(int setting)
62{
63 return units[setting];
64}
65
66int mpeg_sound_numdecimals(int setting)
67{
68 return numdecimals[setting];
69}
70
71int mpeg_sound_min(int setting)
72{
73 return minval[setting];
74}
75
76int mpeg_sound_max(int setting)
77{
78 return maxval[setting];
79}
80
81int mpeg_sound_default(int setting)
82{
83 return defaultval[setting];
84}
85
86void mpeg_volume(void)
87{
88}
89
90void mpeg_bass(void)
91{
92}
93
94void mpeg_treble(void)
95{
96}
97
98void mpeg_stop(void)
99{
100}
101
102void mpeg_resume(void)
103{
104}
105
106void mpeg_pause(void)
107{
108}
109
110void mpeg_next (void)
111{
112}
113
114void mpeg_prev (void)
115{
116}
117
118struct mp3entry* mpeg_current_track(void)
119{
120 return 0;
121}
122
123void mpeg_sound_set(int setting, int value)
124{
125}
126
127#ifndef MPEGPLAY
128void mpeg_play(char *tune)
129{
130 DEBUGF("We instruct the MPEG thread to play %s for us\n",
131 tune);
132}
133
134int 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