diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-08-25 23:40:16 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-08-25 23:40:16 +0000 |
commit | 782d5a53d9fcf37cc8a26496ce5e00965a6913a9 (patch) | |
tree | 684a49f40913f0089e671987d94fc42665800bc4 | |
parent | 89fcd51b7b458d7c541a0f08cfffcc67df73acf6 (diff) |
make floating point speex resampler the default
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1721 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | src/pulsecore/resampler.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c index c1af401c..d98d482d 100644 --- a/src/pulsecore/resampler.c +++ b/src/pulsecore/resampler.c @@ -160,13 +160,8 @@ pa_resampler* pa_resampler_new( resample_method = PA_RESAMPLER_AUTO; } - if (resample_method == PA_RESAMPLER_AUTO) { - if (a->format == PA_SAMPLE_FLOAT32LE || a->format == PA_SAMPLE_FLOAT32BE || - b->format == PA_SAMPLE_FLOAT32LE || b->format == PA_SAMPLE_FLOAT32BE) - resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 0; - else - resample_method = PA_RESAMPLER_SPEEX_FIXED_BASE + 0; - } + if (resample_method == PA_RESAMPLER_AUTO) + resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 0; r = pa_xnew(pa_resampler, 1); r->mempool = pool; |