summaryrefslogtreecommitdiff
path: root/apps/sound_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sound_menu.c')
-rw-r--r--apps/sound_menu.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/apps/sound_menu.c b/apps/sound_menu.c
index f220d26f8f..6537b5b171 100644
--- a/apps/sound_menu.c
+++ b/apps/sound_menu.c
@@ -7,7 +7,7 @@
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Copyright (C) 2002 Björn Stenberg 10 * Copyright (C) 2002 Bj�n Stenberg
11 * 11 *
12 * All files in this archive are subject to the GNU General Public License. 12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement. 13 * See the file COPYING in the source tree root for full license agreement.
@@ -591,6 +591,25 @@ static bool agc_cliptime(void)
591 INT, names, 5, NULL ); 591 INT, names, 5, NULL );
592} 592}
593#endif /* HAVE_AGC */ 593#endif /* HAVE_AGC */
594
595/* Displays a menu for changing the countdown timer settings */
596static bool countdown_timer(void)
597{
598 static const struct opt_items names[] = {
599 { STR(LANG_TIMER_DAYS) },
600 { STR(LANG_TIMER_HRS) },
601 { STR(LANG_TIMER_MINS) }
602 };
603
604 struct opt_settings settings[] = {
605 { &global_settings.ctdn_days, 6 },
606 { &global_settings.ctdn_hrs, 23 },
607 { &global_settings.ctdn_mins, 59 }
608 };
609
610 return set_multi_int(str(LANG_TIMER_SET), names, settings, 3);
611}
612
594#endif /* HAVE_RECORDING */ 613#endif /* HAVE_RECORDING */
595 614
596static bool chanconf(void) 615static bool chanconf(void)
@@ -1089,6 +1108,8 @@ bool recording_menu(bool no_source)
1089 items[i].desc = ID2P(LANG_RECORD_AGC_CLIPTIME); 1108 items[i].desc = ID2P(LANG_RECORD_AGC_CLIPTIME);
1090 items[i++].function = agc_cliptime; 1109 items[i++].function = agc_cliptime;
1091#endif 1110#endif
1111 items[i].desc = ID2P(LANG_TIMER_SET);
1112 items[i++].function = countdown_timer;
1092 1113
1093 m=menu_init( items, i, NULL, NULL, NULL, NULL); 1114 m=menu_init( items, i, NULL, NULL, NULL, NULL);
1094 result = menu_run(m); 1115 result = menu_run(m);