diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-05-28 10:55:39 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-05-28 10:55:39 +0000 |
commit | ff469ab5733133bfaf8b1c1925be8bdefdb6212c (patch) | |
tree | 9099d834698d773003929906cbfd22288f041e09 /apps/settings.h | |
parent | 0f7f5f2267dd7447466f28946d57597b1c0b78c7 (diff) |
Updated recording trigger screen (seems to be a feature almost noone uses?)
problems/complaints in http://forums.rockbox.org/index.php?topic=16837.0
there is a known issue that on this screen the stop icon wont update, I dont know why and noone else wants to look at it, so hopefully this will force another set of eyes on it.. this is only a graphical issue... recordings still work fine
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17643 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.h')
-rw-r--r-- | apps/settings.h | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/apps/settings.h b/apps/settings.h index 9a9169a74f..320e2b0517 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -90,12 +90,19 @@ struct opt_items { #define BOOKMARK_RECENT_ONLY_YES 3 #define BOOKMARK_RECENT_ONLY_ASK 4 -#define TRIG_MODE_OFF 0 -#define TRIG_MODE_NOREARM 1 -#define TRIG_MODE_REARM 2 +enum +{ + TRIG_MODE_OFF = 0, + TRIG_MODE_NOREARM, + TRIG_MODE_REARM +}; -#define TRIG_DURATION_COUNT 13 -extern const struct opt_items trig_durations[TRIG_DURATION_COUNT]; +enum +{ + TRIG_TYPE_STOP = 0, + TRIG_TYPE_PAUSE, + TRIG_TYPE_NEW_FILE +}; #define CROSSFADE_ENABLE_SHUFFLE 1 #define CROSSFADE_ENABLE_TRACKSKIP 2 @@ -354,10 +361,12 @@ struct user_settings 2 = main and remote lcd 3 = remote lcd */ - int rec_start_thres; /* negative: db, positive: % range -87 .. 100 */ + int rec_start_thres_db; + int rec_start_thres_linear; int rec_start_duration; /* index of trig_durations */ - int rec_stop_thres; /* negative: db, positive: % */ - int rec_stop_postrec; /* negative: db, positive: % range -87 .. 100 */ + int rec_stop_thres_db; + int rec_stop_thres_linear; + int rec_stop_postrec; int rec_stop_gap; /* index of trig_durations */ int rec_trigger_mode; /* see TRIG_MODE_XXX constants */ int rec_trigger_type; /* what to do when trigger released */ |