summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/apps/settings.h b/apps/settings.h
index 39ff4da25b..179a3390d7 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -237,12 +237,12 @@ bool set_option(const char* string, void* variable, enum optiontype type,
237 const struct opt_items* options, int numoptions, void (*function)(int)); 237 const struct opt_items* options, int numoptions, void (*function)(int));
238bool set_int(const unsigned char* string, const char* unit, int voice_unit, 238bool set_int(const unsigned char* string, const char* unit, int voice_unit,
239 int* variable, 239 int* variable,
240 void (*function)(int), int step, int min, int max, 240 void (*function)(int), int step, int min, int max,
241 void (*formatter)(char*, size_t, int, const char*) ); 241 void (*formatter)(char*, size_t, int, const char*) );
242/* use this one if you need to create a lang from the value (i.e with TALK_ID()) */ 242/* use this one if you need to create a lang from the value (i.e with TALK_ID()) */
243bool set_int_ex(const unsigned char* string, const char* unit, int voice_unit, 243bool set_int_ex(const unsigned char* string, const char* unit, int voice_unit,
244 int* variable, 244 int* variable,
245 void (*function)(int), int step, int min, int max, 245 void (*function)(int), int step, int min, int max,
246 void (*formatter)(char*, size_t, int, const char*), 246 void (*formatter)(char*, size_t, int, const char*),
247 int32_t (*get_talk_id)(int, int)); 247 int32_t (*get_talk_id)(int, int));
248 248
@@ -353,7 +353,7 @@ struct user_settings
353 1 = main lcd 353 1 = main lcd
354 2 = main and remote lcd 354 2 = main and remote lcd
355 3 = remote lcd */ 355 3 = remote lcd */
356 356
357 int rec_start_thres; /* negative: db, positive: % range -87 .. 100 */ 357 int rec_start_thres; /* negative: db, positive: % range -87 .. 100 */
358 int rec_start_duration; /* index of trig_durations */ 358 int rec_start_duration; /* index of trig_durations */
359 int rec_stop_thres; /* negative: db, positive: % */ 359 int rec_stop_thres; /* negative: db, positive: % */
@@ -520,7 +520,7 @@ struct user_settings
520 bool talk_menu; /* enable voice UI */ 520 bool talk_menu; /* enable voice UI */
521 int talk_dir; /* voiced directories mode: 0=off 1=number 2=spell */ 521 int talk_dir; /* voiced directories mode: 0=off 1=number 2=spell */
522 bool talk_dir_clip; /* use directory .talk clips */ 522 bool talk_dir_clip; /* use directory .talk clips */
523 int talk_file; /* voice file mode: 0=off, 1=number, 2=spell */ 523 int talk_file; /* voice file mode: 0=off, 1=number, 2=spell */
524 bool talk_file_clip; /* use file .talk clips */ 524 bool talk_file_clip; /* use file .talk clips */
525 bool talk_filetype; /* say file type */ 525 bool talk_filetype; /* say file type */
526 bool talk_battery_level; 526 bool talk_battery_level;
@@ -528,7 +528,7 @@ struct user_settings
528 /* file browser sorting */ 528 /* file browser sorting */
529 int sort_file; /* 0=alpha, 1=date, 2=date (new first), 3=type */ 529 int sort_file; /* 0=alpha, 1=date, 2=date (new first), 3=type */
530 int sort_dir; /* 0=alpha, 1=date (old first), 2=date (new first) */ 530 int sort_dir; /* 0=alpha, 1=date (old first), 2=date (new first) */
531 531
532#ifdef HAVE_REMOTE_LCD 532#ifdef HAVE_REMOTE_LCD
533 /* remote lcd */ 533 /* remote lcd */
534 int remote_contrast; /* lcd contrast: 0-63 0=low 63=high */ 534 int remote_contrast; /* lcd contrast: 0-63 0=low 63=high */
@@ -548,7 +548,7 @@ struct user_settings
548 1=EMI reduce on with cost more CPU. */ 548 1=EMI reduce on with cost more CPU. */
549#endif 549#endif
550#endif /* HAVE_REMOTE_LCD */ 550#endif /* HAVE_REMOTE_LCD */
551 551
552 int next_folder; /* move to next folder */ 552 int next_folder; /* move to next folder */
553 bool runtimedb; /* runtime database active? */ 553 bool runtimedb; /* runtime database active? */
554 554
@@ -559,7 +559,7 @@ struct user_settings
559 shuffle is on, album gain otherwise */ 559 shuffle is on, album gain otherwise */
560 int replaygain_preamp; /* scale replaygained tracks by this */ 560 int replaygain_preamp; /* scale replaygained tracks by this */
561 int beep; /* system beep volume when changing tracks etc. */ 561 int beep; /* system beep volume when changing tracks etc. */
562 562
563 /* Crossfeed settings */ 563 /* Crossfeed settings */
564 bool crossfeed; /* enable crossfeed */ 564 bool crossfeed; /* enable crossfeed */
565 unsigned int crossfeed_direct_gain; /* dB x 10 */ 565 unsigned int crossfeed_direct_gain; /* dB x 10 */
@@ -631,7 +631,7 @@ struct user_settings
631 int lst_color; /* color of the text for the selector */ 631 int lst_color; /* color of the text for the selector */
632#endif 632#endif
633 bool party_mode; /* party mode - unstoppable music */ 633 bool party_mode; /* party mode - unstoppable music */
634 634
635#ifdef HAVE_BACKLIGHT 635#ifdef HAVE_BACKLIGHT
636 bool bl_filter_first_keypress; /* filter first keypress when dark? */ 636 bool bl_filter_first_keypress; /* filter first keypress when dark? */
637#ifdef HAVE_REMOTE_LCD 637#ifdef HAVE_REMOTE_LCD
@@ -719,6 +719,10 @@ struct user_settings
719 int usb_stack_mode; /* device or host */ 719 int usb_stack_mode; /* device or host */
720 unsigned char usb_stack_device_driver[32]; /* usb device driver to load */ 720 unsigned char usb_stack_device_driver[32]; /* usb device driver to load */
721#endif 721#endif
722#if CONFIG_CODEC == SWCODEC
723 int keyclick; /* keyclick volume */
724 int keyclick_repeats; /* keyclick on repeats */
725#endif
722}; 726};
723 727
724/** global variables **/ 728/** global variables **/