diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2003-06-10 19:24:51 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2003-06-10 19:24:51 +0000 |
| commit | cd82560f2c78140cd9f567f69576bcc67871f862 (patch) | |
| tree | 2ab949ac371318d0ba8fd7a68ea25c7f2376c6d6 | |
| parent | 2bcb3dfccc429023c15e63abdcb09cba3157a5ea (diff) | |
| download | rockbox-cd82560f2c78140cd9f567f69576bcc67871f862.zip rockbox-cd82560f2c78140cd9f567f69576bcc67871f862.tar.gz rockbox-cd82560f2c78140cd9f567f69576bcc67871f862.tar.bz2 rockbox-cd82560f2c78140cd9f567f69576bcc67871f862.tar.xz | |
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.c | 6 | ||||
| -rw-r--r-- | apps/settings.h | 13 | ||||
| -rw-r--r-- | apps/sound_menu.c | 10 |
3 files changed, 16 insertions, 13 deletions
diff --git a/apps/settings.c b/apps/settings.c index 01aacbc..b04609d 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -1039,9 +1039,11 @@ bool settings_load_config(char* file) set_cfg_int(&global_settings.rec_quality, value, 0, 7); else if (!strcasecmp(name, "rec timesplit")){ static char* options[] = {"off", "00:05","00:10","00:15", - "00:30","01:00","02:00","04:00"}; + "00:30","01:00","02:00","04:00", + "06:00","08:00","10:00","12:00", + "18:00","24:00"}; set_cfg_option(&global_settings.rec_timesplit, value, - options, 8); + options, 14); } else if (!strcasecmp(name, "rec source")) { static char* options[] = {"mic", "line", "spdif"}; diff --git a/apps/settings.h b/apps/settings.h index 2d437fe..624b06e 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -77,14 +77,11 @@ struct user_settings bool rec_editable; /* true means that the bit reservoir is off */ /* note: timesplit setting is not saved */ - int rec_timesplit; /* 0 = off - 1 = 00:05 - 2 = 00:10 - 3 = 00:15 - 4 = 00:30 - 5 = 01:00 - 6 = 02:00 - 7 = 04:00 */ + int rec_timesplit; /* 0 = off, + 1 = 00:05, 2 = 00:10, 3 = 00:15, 4 = 00:30 + 5 = 01:00, 6 = 02:00, 7 = 04:00, 8 = 06:00 + 9 = 08:00, 10= 10:00, 11= 12:00, 12= 18:00, + 13= 24:00 */ /* device settings */ diff --git a/apps/sound_menu.c b/apps/sound_menu.c index 7acff75..deb95eb 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c @@ -228,12 +228,16 @@ static bool receditable(void) static bool rectimesplit(void) { - char *names[] = {str(LANG_OFF), "00:05","00:10","00:15", - "00:30","01:00","02:00","04:00"}; + char *names[] = { + str(LANG_OFF), "00:05","00:10","00:15", + "00:30","01:00","02:00","04:00" + "06:00","08:00","10:00","12:00", + "18:00","24:00" + }; return set_option(str(LANG_RECORD_TIMESPLIT), &global_settings.rec_timesplit, INT, - names, 8, NULL ); + names, 14, NULL ); } #endif /* HAVE_MAS3587F */ |