mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
make floating point speex resampler the default
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1721 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
89fcd51b7b
commit
782d5a53d9
1 changed files with 2 additions and 7 deletions
|
|
@ -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)
|
||||
if (resample_method == PA_RESAMPLER_AUTO)
|
||||
resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 0;
|
||||
else
|
||||
resample_method = PA_RESAMPLER_SPEEX_FIXED_BASE + 0;
|
||||
}
|
||||
|
||||
r = pa_xnew(pa_resampler, 1);
|
||||
r->mempool = pool;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue