Update of /cvsroot/alsa/alsa-utils/aplay
In directory sc8-pr-cvs1:/tmp/cvs-serv12092

Modified Files:
        aplay.c 
Log Message:
Fixed calc_count() routine - wav files with traling RIFF chunks sound ok now

Index: aplay.c
===================================================================
RCS file: /cvsroot/alsa/alsa-utils/aplay/aplay.c,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -r1.175 -r1.176
--- aplay.c     27 Nov 2003 11:07:25 -0000      1.175
+++ aplay.c     28 Nov 2003 10:24:53 -0000      1.176
@@ -1513,11 +1513,15 @@
 {
        off64_t count;
 
-       if (!timelimit) {
+       if (!timelimit && pbrec_count == (size_t)-1) {
                count = (off64_t)-1;
        } else {
-               count = snd_pcm_format_size(hwparams.format, hwparams.rate * 
hwparams.channels);
-               count *= (off64_t)timelimit;
+               if (timelimit == 0) {
+                       count = pbrec_count;
+               } else {
+                       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: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to