summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-11-18 08:55:25 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-11-18 08:55:25 +0000
commit54e96e9696bbad6037509fdd97f2d7d67663a493 (patch)
treea8462729fcace0f752ca2c2e0c5ca4d74ac96bf3
parent210de716dbbb51c10814920e644b348ccd5c7e68 (diff)
downloadrockbox-54e96e9696bbad6037509fdd97f2d7d67663a493.tar.gz
rockbox-54e96e9696bbad6037509fdd97f2d7d67663a493.zip
Patch #844001 by Dave Jones, fixes the >6h time split bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4034 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/recording.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index ab1527444c..b440764c9d 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -92,14 +92,20 @@ static char *fmtstr[] =
92/* This array holds the record timer interval lengths, in seconds */ 92/* This array holds the record timer interval lengths, in seconds */
93static unsigned long rec_timer_seconds[] = 93static unsigned long rec_timer_seconds[] =
94{ 94{
95 0, /* off */ 95 0, /* off */
96 300, /* 00:05 */ 96 5*60, /* 00:05 */
97 600, /* 00:10 */ 97 10*60, /* 00:10 */
98 900, /* 00:15 */ 98 15*60, /* 00:15 */
99 1800, /* 00:30 */ 99 30*60, /* 00:30 */
100 3600, /* 01:00 */ 100 60*60, /* 01:00 */
101 7200, /* 02:00 */ 101 2*60*60, /* 02:00 */
102 14400, /* 04:00 */ 102 4*60*60, /* 04:00 */
103 6*60*60, /* 06:00 */
104 8*60*60, /* 08:00 */
105 10*60*60, /* 10:00 */
106 12*60*60, /* 12:00 */
107 18*60*60, /* 18:00 */
108 24*60*60 /* 24:00 */
103}; 109};
104 110
105char *fmt_gain(int snd, int val, char *str, int len) 111char *fmt_gain(int snd, int val, char *str, int len)