decrease maximum allowed sample frequency for ALSA devices to 5%, since 48000 would...
authorLennart Poettering <lennart@poettering.net>
Wed, 31 May 2006 00:05:38 +0000 (00:05 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 31 May 2006 00:05:38 +0000 (00:05 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@995 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/modules/alsa-util.c

index 99c1cfa..5b6d72e 100644 (file)
@@ -284,7 +284,7 @@ int pa_alsa_set_hw_params(snd_pcm_t *pcm_handle, pa_sample_spec *ss, uint32_t *p
         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;
     }