Update of /cvsroot/alsa/alsa-utils/aplay
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32442

Modified Files:
        aplay.c 
Log Message:
amorac <[EMAIL PROTECTED]>
arecord doesn't record if you don't indicate the time limit
The problem happens when the Wave-file is checked for it being even.
I have tried with the next change in aplay.c and it seems to work fine.


Index: aplay.c
===================================================================
RCS file: /cvsroot/alsa/alsa-utils/aplay/aplay.c,v
retrieving revision 1.178
retrieving revision 1.179
diff -u -r1.178 -r1.179
--- aplay.c     9 Mar 2004 17:43:46 -0000       1.178
+++ aplay.c     27 Apr 2004 13:38:59 -0000      1.179
@@ -1922,7 +1922,10 @@
        pbrec_count = calc_count();
        /* WAVE-file should be even (I'm not sure), but wasting one byte
           isn't a problem (this can only be in 8 bit mono) */
-       pbrec_count += pbrec_count % 2;
+       if (pbrec_count < LLONG_MAX)
+               pbrec_count += pbrec_count % 2;
+       else
+               pbrec_count -= pbrec_count % 2;
        if (pbrec_count == 0)
                pbrec_count -= 2;
        if (fmt_rec_table[file_type].start)



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to