summaryrefslogtreecommitdiffstats
path: root/pph
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-07-20 14:40:53 +0200
committerTakashi Iwai <tiwai@suse.de>2007-07-20 14:40:53 +0200
commitf875609b187837c4332246a55c8032db07aa76c0 (patch)
treeaa19ad08cd82a1d285e2d5ba3b08efeac9b84f16 /pph
parent64d863f3372f22a9220b0b6445b85b8daf03334d (diff)
Disable direct sinc table
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.
Diffstat (limited to 'pph')
-rw-r--r--pph/resample.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pph/resample.c b/pph/resample.c
index 45fac60..281cb32 100644
--- a/pph/resample.c
+++ b/pph/resample.c
@@ -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)