diff options
Diffstat (limited to 'apps/sound_menu.c')
-rw-r--r-- | apps/sound_menu.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/apps/sound_menu.c b/apps/sound_menu.c index f101b5d8a4..7acff7554d 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c | |||
@@ -181,7 +181,7 @@ static void set_avc(int val) | |||
181 | static bool avc(void) | 181 | static bool avc(void) |
182 | { | 182 | { |
183 | char* names[] = { str(LANG_OFF), "2s", "4s", "8s" }; | 183 | char* names[] = { str(LANG_OFF), "2s", "4s", "8s" }; |
184 | return set_option(str(LANG_DECAY), &global_settings.avc, | 184 | return set_option(str(LANG_DECAY), &global_settings.avc, INT, |
185 | names, 4, set_avc); | 185 | names, 4, set_avc); |
186 | } | 186 | } |
187 | 187 | ||
@@ -190,7 +190,7 @@ static bool recsource(void) | |||
190 | char *names[] = {str(LANG_RECORDING_SRC_MIC), str(LANG_RECORDING_SRC_LINE), | 190 | char *names[] = {str(LANG_RECORDING_SRC_MIC), str(LANG_RECORDING_SRC_LINE), |
191 | str(LANG_RECORDING_SRC_DIGITAL) }; | 191 | str(LANG_RECORDING_SRC_DIGITAL) }; |
192 | return set_option(str(LANG_RECORDING_SOURCE), | 192 | return set_option(str(LANG_RECORDING_SOURCE), |
193 | &global_settings.rec_source, | 193 | &global_settings.rec_source, INT, |
194 | names, 3, NULL ); | 194 | names, 3, NULL ); |
195 | } | 195 | } |
196 | 196 | ||
@@ -200,7 +200,7 @@ static bool recfrequency(void) | |||
200 | "22.05kHz", "24kHz", "16kHz"}; | 200 | "22.05kHz", "24kHz", "16kHz"}; |
201 | 201 | ||
202 | return set_option(str(LANG_RECORDING_FREQUENCY), | 202 | return set_option(str(LANG_RECORDING_FREQUENCY), |
203 | &global_settings.rec_frequency, | 203 | &global_settings.rec_frequency, INT, |
204 | names, 6, NULL ); | 204 | names, 6, NULL ); |
205 | } | 205 | } |
206 | 206 | ||
@@ -209,7 +209,7 @@ static bool recchannels(void) | |||
209 | char *names[] = {str(LANG_CHANNEL_STEREO), str(LANG_CHANNEL_MONO)}; | 209 | char *names[] = {str(LANG_CHANNEL_STEREO), str(LANG_CHANNEL_MONO)}; |
210 | 210 | ||
211 | return set_option(str(LANG_RECORDING_CHANNELS), | 211 | return set_option(str(LANG_RECORDING_CHANNELS), |
212 | &global_settings.rec_channels, | 212 | &global_settings.rec_channels, INT, |
213 | names, 2, NULL ); | 213 | names, 2, NULL ); |
214 | } | 214 | } |
215 | 215 | ||
@@ -232,7 +232,7 @@ static bool rectimesplit(void) | |||
232 | "00:30","01:00","02:00","04:00"}; | 232 | "00:30","01:00","02:00","04:00"}; |
233 | 233 | ||
234 | return set_option(str(LANG_RECORD_TIMESPLIT), | 234 | return set_option(str(LANG_RECORD_TIMESPLIT), |
235 | &global_settings.rec_timesplit, | 235 | &global_settings.rec_timesplit, INT, |
236 | names, 8, NULL ); | 236 | names, 8, NULL ); |
237 | } | 237 | } |
238 | 238 | ||
@@ -245,16 +245,18 @@ static void set_chanconf(int val) | |||
245 | 245 | ||
246 | static bool chanconf(void) | 246 | static bool chanconf(void) |
247 | { | 247 | { |
248 | char *names[] = {str(LANG_CHANNEL_STEREO), | 248 | char *names[] = { |
249 | str(LANG_CHANNEL_STEREO), | ||
249 | #ifdef HAVE_LCD_CHARCELLS | 250 | #ifdef HAVE_LCD_CHARCELLS |
250 | str(LANG_CHANNEL_STEREO_NARROW_PLAYER), | 251 | str(LANG_CHANNEL_STEREO_NARROW_PLAYER), |
251 | #else | 252 | #else |
252 | str(LANG_CHANNEL_STEREO_NARROW_RECORDER), | 253 | str(LANG_CHANNEL_STEREO_NARROW_RECORDER), |
253 | #endif | 254 | #endif |
254 | str(LANG_CHANNEL_MONO), | 255 | str(LANG_CHANNEL_MONO), |
255 | str(LANG_CHANNEL_LEFT), str(LANG_CHANNEL_RIGHT), | 256 | str(LANG_CHANNEL_LEFT), str(LANG_CHANNEL_RIGHT), |
256 | str(LANG_CHANNEL_KARAOKE), str(LANG_CHANNEL_STEREO_WIDE) }; | 257 | str(LANG_CHANNEL_KARAOKE), str(LANG_CHANNEL_STEREO_WIDE) |
257 | return set_option(str(LANG_CHANNEL), &global_settings.channel_config, | 258 | }; |
259 | return set_option(str(LANG_CHANNEL), &global_settings.channel_config, INT, | ||
258 | names, 7, set_chanconf ); | 260 | names, 7, set_chanconf ); |
259 | } | 261 | } |
260 | 262 | ||