Update of /cvsroot/alsa/alsa-kernel/core
In directory sc8-pr-cvs1:/tmp/cvs-serv26154

Modified Files:
        pcm_lib.c 
Log Message:
Fixed bug in the silence code

Index: pcm_lib.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/pcm_lib.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- pcm_lib.c   19 May 2003 15:20:05 -0000      1.41
+++ pcm_lib.c   7 Jul 2003 23:08:09 -0000       1.42
@@ -65,6 +65,8 @@
                frames = runtime->silence_threshold - noise_dist;
                if (frames > runtime->silence_size)
                        frames = runtime->silence_size;
+               else
+                       frames = runtime->silence_threshold;
        } else {
                if (new_hw_ptr == ULONG_MAX) {  /* initialization */
                        runtime->silence_filled = 0;
@@ -1932,7 +1934,7 @@
                if (runtime->silence_size >= runtime->boundary) {
                        frames = 1;
                } else if (runtime->silence_size > 0 &&
-                   runtime->silence_filled < runtime->buffer_size) {
+                          runtime->silence_filled < runtime->buffer_size) {
                        snd_pcm_sframes_t noise_dist;
                        noise_dist = snd_pcm_playback_hw_avail(runtime) + 
runtime->silence_filled;
                        snd_assert(noise_dist <= 
(snd_pcm_sframes_t)runtime->silence_threshold, );



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to