diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-10-29 08:34:30 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-10-29 08:34:30 +0000 |
commit | 1c0690776d45c50b90df037669b4dbfe0467ca8a (patch) | |
tree | 3b9cabc1cc0e1a054bd9ac103c26b71a960a2d30 /src/pulsecore | |
parent | c6a7f06e239b58e02c912622d06b72cba3fbc91d (diff) |
make speex-float-3 the default resampler
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1973 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/core.c | 2 | ||||
-rw-r--r-- | src/pulsecore/resampler.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c index e9008833..e67f15b5 100644 --- a/src/pulsecore/core.c +++ b/src/pulsecore/core.c @@ -132,7 +132,7 @@ pa_core* pa_core_new(pa_mainloop_api *m, int shared) { c->module_idle_time = 20; c->scache_idle_time = 20; - c->resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE; + c->resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 3; c->is_system_instance = 0; c->disallow_module_loading = 0; diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c index 5bbc6bf4..b4447198 100644 --- a/src/pulsecore/resampler.c +++ b/src/pulsecore/resampler.c @@ -195,7 +195,7 @@ pa_resampler* pa_resampler_new( } if (resample_method == PA_RESAMPLER_AUTO) - resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 0; + resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 3; r = pa_xnew(pa_resampler, 1); r->mempool = pool; @@ -439,10 +439,10 @@ pa_resample_method_t pa_parse_resample_method(const char *string) { return m; if (!strcmp(string, "speex-fixed")) - return PA_RESAMPLER_SPEEX_FIXED_BASE + 0; + return PA_RESAMPLER_SPEEX_FIXED_BASE + 3; if (!strcmp(string, "speex-float")) - return PA_RESAMPLER_SPEEX_FLOAT_BASE + 0; + return PA_RESAMPLER_SPEEX_FLOAT_BASE + 3; return PA_RESAMPLER_INVALID; } |