From ff469ab5733133bfaf8b1c1925be8bdefdb6212c Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 28 May 2008 10:55:39 +0000 Subject: 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 --- apps/settings.h | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'apps/settings.h') diff --git a/apps/settings.h b/apps/settings.h index 9a9169a..320e2b0 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 */ -- cgit v1.1