[polypaudio-commits] r995 - /trunk/src/modules/alsa-util.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue May 30 17:05:38 PDT 2006


Author: lennart
Date: Wed May 31 02:05:38 2006
New Revision: 995

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=995&root=polypaudio&view=rev
Log:
decrease maximum allowed sample frequency for ALSA devices to 5%, since 48000 would otherwise match with 44100

Modified:
    trunk/src/modules/alsa-util.c

Modified: trunk/src/modules/alsa-util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/alsa-util.c?rev=995&root=polypaudio&r1=994&r2=995&view=diff
==============================================================================
--- trunk/src/modules/alsa-util.c (original)
+++ trunk/src/modules/alsa-util.c Wed May 31 02:05:38 2006
@@ -284,7 +284,7 @@
         pa_log_info(__FILE__": device doesn't support %u Hz, changed to %u Hz.", ss->rate, r);
 
         /* If the sample rate deviates too much, we need to resample */
-        if (r < ss->rate*.9 || r > ss->rate*1.1)
+        if (r < ss->rate*.95 || r > ss->rate*1.05)
             ss->rate = r;
     }
 




More information about the pulseaudio-commits mailing list