diff options
Diffstat (limited to 'apps/sound_menu.c')
-rw-r--r-- | apps/sound_menu.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/apps/sound_menu.c b/apps/sound_menu.c index f08ee35525..560163c7c1 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include "sprintf.h" | 34 | #include "sprintf.h" |
35 | #include "talk.h" | 35 | #include "talk.h" |
36 | #include "misc.h" | 36 | #include "misc.h" |
37 | #include "sound.h" | ||
37 | 38 | ||
38 | static const char* const fmt[] = | 39 | static const char* const fmt[] = |
39 | { | 40 | { |
@@ -59,11 +60,11 @@ bool set_sound(const char* string, | |||
59 | int steps; | 60 | int steps; |
60 | int button; | 61 | int button; |
61 | 62 | ||
62 | unit = mpeg_sound_unit(setting); | 63 | unit = sound_unit(setting); |
63 | numdec = mpeg_sound_numdecimals(setting); | 64 | numdec = sound_numdecimals(setting); |
64 | steps = mpeg_sound_steps(setting); | 65 | steps = sound_steps(setting); |
65 | min = mpeg_sound_min(setting); | 66 | min = sound_min(setting); |
66 | max = mpeg_sound_max(setting); | 67 | max = sound_max(setting); |
67 | if (*unit == 'd') /* crude reconstruction */ | 68 | if (*unit == 'd') /* crude reconstruction */ |
68 | talkunit = UNIT_DB; | 69 | talkunit = UNIT_DB; |
69 | else if (*unit == '%') | 70 | else if (*unit == '%') |
@@ -82,7 +83,7 @@ bool set_sound(const char* string, | |||
82 | 83 | ||
83 | while (!done) { | 84 | while (!done) { |
84 | if (changed) { | 85 | if (changed) { |
85 | val = mpeg_val2phys(setting, *variable); | 86 | val = sound_val2phys(setting, *variable); |
86 | if(numdec) | 87 | if(numdec) |
87 | { | 88 | { |
88 | integer = val / (10 * numdec); | 89 | integer = val / (10 * numdec); |
@@ -136,7 +137,7 @@ bool set_sound(const char* string, | |||
136 | break; | 137 | break; |
137 | } | 138 | } |
138 | if (changed) | 139 | if (changed) |
139 | mpeg_sound_set(setting, *variable); | 140 | sound_set(setting, *variable); |
140 | } | 141 | } |
141 | lcd_stop_scroll(); | 142 | lcd_stop_scroll(); |
142 | return false; | 143 | return false; |
@@ -196,7 +197,7 @@ static bool mdb_shape(void) | |||
196 | 197 | ||
197 | static void set_mdb_enable(bool value) | 198 | static void set_mdb_enable(bool value) |
198 | { | 199 | { |
199 | mpeg_sound_set(SOUND_MDB_ENABLE, (int)value); | 200 | sound_set(SOUND_MDB_ENABLE, (int)value); |
200 | } | 201 | } |
201 | 202 | ||
202 | static bool mdb_enable(void) | 203 | static bool mdb_enable(void) |
@@ -210,7 +211,7 @@ static bool mdb_enable(void) | |||
210 | 211 | ||
211 | static void set_superbass(bool value) | 212 | static void set_superbass(bool value) |
212 | { | 213 | { |
213 | mpeg_sound_set(SOUND_SUPERBASS, (int)value); | 214 | sound_set(SOUND_SUPERBASS, (int)value); |
214 | } | 215 | } |
215 | 216 | ||
216 | static bool superbass(void) | 217 | static bool superbass(void) |
@@ -224,7 +225,7 @@ static bool superbass(void) | |||
224 | 225 | ||
225 | static void set_avc(int val) | 226 | static void set_avc(int val) |
226 | { | 227 | { |
227 | mpeg_sound_set(SOUND_AVC, val); | 228 | sound_set(SOUND_AVC, val); |
228 | } | 229 | } |
229 | 230 | ||
230 | static bool avc(void) | 231 | static bool avc(void) |
@@ -379,7 +380,7 @@ static bool reconstartup(void) | |||
379 | 380 | ||
380 | static void set_chanconf(int val) | 381 | static void set_chanconf(int val) |
381 | { | 382 | { |
382 | mpeg_sound_set(SOUND_CHANNELS, val); | 383 | sound_set(SOUND_CHANNELS, val); |
383 | } | 384 | } |
384 | 385 | ||
385 | static bool chanconf(void) | 386 | static bool chanconf(void) |