summaryrefslogtreecommitdiffstats
path: root/apps/sound_menu.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-01-21 14:58:40 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-01-21 14:58:40 +0000
commitef7293f0bc336beb30f3a5f2eafad4a447f60ac5 (patch)
tree68b02b0278b25a10a261d8813bbf5be39e1a51b6 /apps/sound_menu.c
parent33acdef9db5ffa2c6f93dc07d0400c7a72a0f25e (diff)
downloadrockbox-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.c15
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)
names, 31, NULL );
}
+static bool recdirectory(void)
+{
+ char *names[] = {
+ rec_base_directory, str(LANG_RECORD_CURRENT_DIR)
+ };
+
+ return set_option(str(LANG_RECORD_DIRECTORY),
+ &global_settings.rec_directory, INT,
+ names, 2, NULL );
+}
+
#endif /* HAVE_MAS3587F */
static void set_chanconf(int val)
@@ -308,7 +319,7 @@ bool recording_menu(bool no_source)
{
int m;
int i = 0;
- struct menu_items menu[7];
+ struct menu_items menu[8];
bool result;
menu[i].desc = str(LANG_RECORDING_QUALITY);
@@ -327,6 +338,8 @@ bool recording_menu(bool no_source)
menu[i++].function = rectimesplit;
menu[i].desc = str(LANG_RECORD_PRERECORD_TIME);
menu[i++].function = recprerecord;
+ menu[i].desc = str(LANG_RECORD_DIRECTORY);
+ menu[i++].function = recdirectory;
m=menu_init( menu, i );
result = menu_run(m);