Update of /cvsroot/alsa/alsa-utils/aplay
In directory sc8-pr-cvs1:/tmp/cvs-serv19145
Modified Files:
aplay.c
Log Message:
More size_t off64_t changes
Index: aplay.c
===================================================================
RCS file: /cvsroot/alsa/alsa-utils/aplay/aplay.c,v
retrieving revision 1.171
retrieving revision 1.172
diff -u -r1.171 -r1.172
--- aplay.c 27 Aug 2003 11:08:27 -0000 1.171
+++ aplay.c 27 Aug 2003 11:12:50 -0000 1.172
@@ -95,7 +95,7 @@
static snd_output_t *log;
static int fd = -1;
-static size_t pbrec_count = (size_t)-1, fdcount;
+static off64_t pbrec_count = (size_t)-1, fdcount;
static int vocmajor, vocminor;
/* needed prototypes */
@@ -1510,16 +1510,15 @@
}
/* calculate the data count to read from/to dsp */
-static size_t calc_count(void)
+static off64_t calc_count(void)
{
- size_t count;
+ off64_t count;
if (!timelimit) {
- count = (size_t)-1;
+ count = (off64_t)-1;
} else {
- count = snd_pcm_format_size(hwparams.format,
- timelimit * hwparams.rate *
- hwparams.channels);
+ count = snd_pcm_format_size(hwparams.format, hwparams.rate *
hwparams.channels);
+ count *= (off64_t)timelimit;
}
return count < pbrec_count ? count : pbrec_count;
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog