logo       

amiconn: apps/recorder recording.c,1.69,1.70: msg#00246

systems.archos.rockbox.cvs

Subject: amiconn: apps/recorder recording.c,1.69,1.70

Update of /cvsroot/rockbox/apps/recorder
In directory labb:/tmp/cvs-serv5400/apps/recorder

Modified Files:
recording.c
Log Message:
New function for formatting large-range values for output, both printed and
voiced. This replaces num2max5(). It is currently used for the total/free space
display in the info menu, for the recorded number of bytes (recorders) and the
MMC debug info (Ondios).

Index: recording.c
===================================================================
RCS file: /cvsroot/rockbox/apps/recorder/recording.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- recording.c 13 Jan 2005 23:40:00 -0000 1.69
+++ recording.c 31 Jan 2005 00:39:20 -0000 1.70
@@ -248,6 +248,13 @@
bool led_state;
int led_delay;

+ const unsigned char *byte_units[] = {
+ ID2P(LANG_BYTE),
+ ID2P(LANG_KILOBYTE),
+ ID2P(LANG_MEGABYTE),
+ ID2P(LANG_GIGABYTE)
+ };
+
cursor = 0;
mpeg_init_recording();

@@ -587,10 +594,13 @@
dhours, dminutes);
}
else
+ {
+ output_dyn_value(buf2, sizeof buf2,
+ mpeg_num_recorded_bytes(),
+ byte_units, true);
snprintf(buf, 32, "%s %s",
- str(LANG_RECORDING_SIZE),
- num2max5(mpeg_num_recorded_bytes(),
- buf2));
+ str(LANG_RECORDING_SIZE), buf2);
+ }
}
lcd_puts(0, 1, buf);


_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox-cvs



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise