diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-09-18 12:41:12 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-09-18 12:41:12 +0000 |
commit | fa9dee01bc70a56cb602f66776a43939c8293f6f (patch) | |
tree | cde60a608aa0f16f51c28099f784d85b832dc862 /apps/settings.h | |
parent | 7ef47ed87614d6100b491b2c0eb9f75d1fdc1f01 (diff) |
Reverted the recording timer commit, as it has at least 2 major problems. (1) It uses the user timer, which interferes e.g. with backlight fading on H1x0 (and potentially other targets). Using the user timer here is a waste, as the required timing lies in the range of seconds to days. A tick task would be sufficient. (2) It draws to the LCD from within an ISR. This must not be done unless there's a mechanism to ensure it doesn't interfere with the main thread's drawing, otherwise garbage might be displayed and LCD updates might stop working.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10991 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.h')
-rw-r--r-- | apps/settings.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/settings.h b/apps/settings.h index fe00dce023..561dc59375 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -167,10 +167,7 @@ struct user_settings 13= 1GB, 14 = 1.5GB 15 = 1.75MB*/ int rec_split_type; /* split/stop */ int rec_split_method; /* time/filesize */ - int ctdn_mins; /* 0 - 59 */ - int ctdn_hrs; /* 0 - 23 */ - int ctdn_secs; /* 0 - 59 */ - int ctdn_days; /* 0 - 6 */ + int rec_prerecord_time; /* In seconds, 0-30, 0 means OFF */ int rec_directory; /* 0=base dir, 1=current dir */ bool rec_startup; /* true means start Rockbox in recording screen */ @@ -498,11 +495,6 @@ struct opt_items { long voice_id; }; -struct opt_settings { - int* setting; - int setting_max; -}; - /* prototypes */ void settings_calc_config_sector(void); @@ -524,8 +516,6 @@ bool set_bool_options(const char* string, bool* variable, bool set_bool(const char* string, bool* variable ); bool set_option(const char* string, void* variable, enum optiontype type, const struct opt_items* options, int numoptions, void (*function)(int)); -bool set_multi_int(const char* string, const struct opt_items * names, - struct opt_settings * variable, int varcount); bool set_int(const unsigned char* string, const char* unit, int voice_unit, int* variable, void (*function)(int), int step, int min, int max, |