]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
Disable direct sinc table
authorTakashi Iwai <tiwai@suse.de>
Fri, 20 Jul 2007 12:40:53 +0000 (14:40 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 20 Jul 2007 12:40:53 +0000 (14:40 +0200)
The direct sinc table can be noisy in some conditions (e.g. up-conversion
from 11025 to 44100Hz).  Disable it as a temporary solution for now.

pph/resample.c

index 45fac605e66fac097c57720d84dedbed1d88acb7..281cb32f43f755c58063b94cbda619cd22304f04 100644 (file)
@@ -551,7 +551,10 @@ static void update_filter(SpeexResamplerState *st)
    }
 
    /* Choose the resampling type that requires the least amount of memory */
-   if (st->den_rate <= st->oversample)
+   /* FIXME: The direct sinc table can be noisy in some conditions.
+    *        Disable it as a temporary workaround.
+    */
+   if (0 /*st->den_rate <= st->oversample*/)
    {
       spx_uint32_t i;
       if (!st->sinc_table)