summaryrefslogtreecommitdiff
path: root/uisimulator/win32/mpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/win32/mpeg.c')
-rw-r--r--uisimulator/win32/mpeg.c86
1 files changed, 86 insertions, 0 deletions
diff --git a/uisimulator/win32/mpeg.c b/uisimulator/win32/mpeg.c
index b16dbb40dc..11fa98c02b 100644
--- a/uisimulator/win32/mpeg.c
+++ b/uisimulator/win32/mpeg.c
@@ -21,6 +21,67 @@
21 the target */ 21 the target */
22 22
23#include "debug.h" 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}
24 85
25void mpeg_volume(void) 86void mpeg_volume(void)
26{ 87{
@@ -59,6 +120,10 @@ struct mp3entry* mpeg_current_track(void)
59 return 0; 120 return 0;
60} 121}
61 122
123void mpeg_sound_set(int setting, int value)
124{
125}
126
62#ifndef MPEGPLAY 127#ifndef MPEGPLAY
63void mpeg_play(char *tune) 128void mpeg_play(char *tune)
64{ 129{
@@ -66,4 +131,25 @@ void mpeg_play(char *tune)
66 tune); 131 tune);
67} 132}
68 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
69#endif 155#endif