mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
add support for 32bit integer samples
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2037 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
3c17c7d442
commit
7e0f547f2f
12 changed files with 319 additions and 17 deletions
|
|
@ -240,7 +240,9 @@ pa_resampler* pa_resampler_new(
|
|||
|
||||
if (r->map_required || a->format != b->format) {
|
||||
|
||||
if (a->format == PA_SAMPLE_FLOAT32NE || a->format == PA_SAMPLE_FLOAT32RE ||
|
||||
if (a->format == PA_SAMPLE_S32NE || a->format == PA_SAMPLE_S32RE ||
|
||||
a->format == PA_SAMPLE_FLOAT32NE || a->format == PA_SAMPLE_FLOAT32RE ||
|
||||
b->format == PA_SAMPLE_S32NE || b->format == PA_SAMPLE_S32RE ||
|
||||
b->format == PA_SAMPLE_FLOAT32NE || b->format == PA_SAMPLE_FLOAT32RE)
|
||||
r->work_format = PA_SAMPLE_FLOAT32NE;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue