diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-01-21 14:58:40 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-01-21 14:58:40 +0000 |
commit | ef7293f0bc336beb30f3a5f2eafad4a447f60ac5 (patch) | |
tree | 68b02b0278b25a10a261d8813bbf5be39e1a51b6 /apps/sound_menu.c | |
parent | 33acdef9db5ffa2c6f93dc07d0400c7a72a0f25e (diff) | |
download | rockbox-ef7293f0bc336beb30f3a5f2eafad4a447f60ac5.tar.gz rockbox-ef7293f0bc336beb30f3a5f2eafad4a447f60ac5.zip |
New feature: NOw you can store the recorded files in either /recordings (the directory will be created automatically) or in the current directory.
New feature: A "Create directory" menu option (untested in the simulator).
Bug fix: The ON+Play menu could do nasty things if you pressed ON+Play in an empty dir.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4268 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/sound_menu.c')
-rw-r--r-- | apps/sound_menu.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/sound_menu.c b/apps/sound_menu.c index 11a5581ecb..01bbe09bd1 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c | |||
@@ -255,6 +255,17 @@ static bool recprerecord(void) | |||
255 | names, 31, NULL ); | 255 | names, 31, NULL ); |
256 | } | 256 | } |
257 | 257 | ||
258 | static bool recdirectory(void) | ||
259 | { | ||
260 | char *names[] = { | ||
261 | rec_base_directory, str(LANG_RECORD_CURRENT_DIR) | ||
262 | }; | ||
263 | |||
264 | return set_option(str(LANG_RECORD_DIRECTORY), | ||
265 | &global_settings.rec_directory, INT, | ||
266 | names, 2, NULL ); | ||
267 | } | ||
268 | |||
258 | #endif /* HAVE_MAS3587F */ | 269 | #endif /* HAVE_MAS3587F */ |
259 | 270 | ||
260 | static void set_chanconf(int val) | 271 | static void set_chanconf(int val) |
@@ -308,7 +319,7 @@ bool recording_menu(bool no_source) | |||
308 | { | 319 | { |
309 | int m; | 320 | int m; |
310 | int i = 0; | 321 | int i = 0; |
311 | struct menu_items menu[7]; | 322 | struct menu_items menu[8]; |
312 | bool result; | 323 | bool result; |
313 | 324 | ||
314 | menu[i].desc = str(LANG_RECORDING_QUALITY); | 325 | menu[i].desc = str(LANG_RECORDING_QUALITY); |
@@ -327,6 +338,8 @@ bool recording_menu(bool no_source) | |||
327 | menu[i++].function = rectimesplit; | 338 | menu[i++].function = rectimesplit; |
328 | menu[i].desc = str(LANG_RECORD_PRERECORD_TIME); | 339 | menu[i].desc = str(LANG_RECORD_PRERECORD_TIME); |
329 | menu[i++].function = recprerecord; | 340 | menu[i++].function = recprerecord; |
341 | menu[i].desc = str(LANG_RECORD_DIRECTORY); | ||
342 | menu[i++].function = recdirectory; | ||
330 | 343 | ||
331 | m=menu_init( menu, i ); | 344 | m=menu_init( menu, i ); |
332 | result = menu_run(m); | 345 | result = menu_run(m); |