summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-06-10 19:24:51 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-06-10 19:24:51 +0000
commitcd82560f2c78140cd9f567f69576bcc67871f862 (patch)
tree2ab949ac371318d0ba8fd7a68ea25c7f2376c6d6
parent2bcb3dfccc429023c15e63abdcb09cba3157a5ea (diff)
downloadrockbox-cd82560f2c78140cd9f567f69576bcc67871f862.tar.gz
rockbox-cd82560f2c78140cd9f567f69576bcc67871f862.zip
Added more time options to recorder timesplit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3739 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/settings.c6
-rw-r--r--apps/settings.h13
-rw-r--r--apps/sound_menu.c10
3 files changed, 16 insertions, 13 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 01aacbcf6c..b04609d7bb 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -1039,9 +1039,11 @@ bool settings_load_config(char* file)
1039 set_cfg_int(&global_settings.rec_quality, value, 0, 7); 1039 set_cfg_int(&global_settings.rec_quality, value, 0, 7);
1040 else if (!strcasecmp(name, "rec timesplit")){ 1040 else if (!strcasecmp(name, "rec timesplit")){
1041 static char* options[] = {"off", "00:05","00:10","00:15", 1041 static char* options[] = {"off", "00:05","00:10","00:15",
1042 "00:30","01:00","02:00","04:00"}; 1042 "00:30","01:00","02:00","04:00",
1043 "06:00","08:00","10:00","12:00",
1044 "18:00","24:00"};
1043 set_cfg_option(&global_settings.rec_timesplit, value, 1045 set_cfg_option(&global_settings.rec_timesplit, value,
1044 options, 8); 1046 options, 14);
1045 } 1047 }
1046 else if (!strcasecmp(name, "rec source")) { 1048 else if (!strcasecmp(name, "rec source")) {
1047 static char* options[] = {"mic", "line", "spdif"}; 1049 static char* options[] = {"mic", "line", "spdif"};
diff --git a/apps/settings.h b/apps/settings.h
index 2d437fe0a0..624b06e06b 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -77,14 +77,11 @@ struct user_settings
77 bool rec_editable; /* true means that the bit reservoir is off */ 77 bool rec_editable; /* true means that the bit reservoir is off */
78 78
79 /* note: timesplit setting is not saved */ 79 /* note: timesplit setting is not saved */
80 int rec_timesplit; /* 0 = off 80 int rec_timesplit; /* 0 = off,
81 1 = 00:05 81 1 = 00:05, 2 = 00:10, 3 = 00:15, 4 = 00:30
82 2 = 00:10 82 5 = 01:00, 6 = 02:00, 7 = 04:00, 8 = 06:00
83 3 = 00:15 83 9 = 08:00, 10= 10:00, 11= 12:00, 12= 18:00,
84 4 = 00:30 84 13= 24:00 */
85 5 = 01:00
86 6 = 02:00
87 7 = 04:00 */
88 85
89 /* device settings */ 86 /* device settings */
90 87
diff --git a/apps/sound_menu.c b/apps/sound_menu.c
index 7acff7554d..deb95ebddc 100644
--- a/apps/sound_menu.c
+++ b/apps/sound_menu.c
@@ -228,12 +228,16 @@ static bool receditable(void)
228 228
229static bool rectimesplit(void) 229static bool rectimesplit(void)
230{ 230{
231 char *names[] = {str(LANG_OFF), "00:05","00:10","00:15", 231 char *names[] = {
232 "00:30","01:00","02:00","04:00"}; 232 str(LANG_OFF), "00:05","00:10","00:15",
233 "00:30","01:00","02:00","04:00"
234 "06:00","08:00","10:00","12:00",
235 "18:00","24:00"
236 };
233 237
234 return set_option(str(LANG_RECORD_TIMESPLIT), 238 return set_option(str(LANG_RECORD_TIMESPLIT),
235 &global_settings.rec_timesplit, INT, 239 &global_settings.rec_timesplit, INT,
236 names, 8, NULL ); 240 names, 14, NULL );
237} 241}
238 242
239#endif /* HAVE_MAS3587F */ 243#endif /* HAVE_MAS3587F */