mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
Add support for 24bit samples encoded in the LSB of 32 bit words
This commit is contained in:
parent
6dc76d1158
commit
4a13763797
13 changed files with 339 additions and 19 deletions
|
|
@ -258,9 +258,11 @@ pa_resampler* pa_resampler_new(
|
|||
if (a->format == PA_SAMPLE_S32NE || a->format == PA_SAMPLE_S32RE ||
|
||||
a->format == PA_SAMPLE_FLOAT32NE || a->format == PA_SAMPLE_FLOAT32RE ||
|
||||
a->format == PA_SAMPLE_S24NE || a->format == PA_SAMPLE_S24RE ||
|
||||
a->format == PA_SAMPLE_S24_32NE || a->format == PA_SAMPLE_S24_32RE ||
|
||||
b->format == PA_SAMPLE_S32NE || b->format == PA_SAMPLE_S32RE ||
|
||||
b->format == PA_SAMPLE_FLOAT32NE || b->format == PA_SAMPLE_FLOAT32RE ||
|
||||
b->format == PA_SAMPLE_S24NE || b->format == PA_SAMPLE_S24RE)
|
||||
b->format == PA_SAMPLE_S24NE || b->format == PA_SAMPLE_S24RE ||
|
||||
b->format == PA_SAMPLE_S24_32NE || b->format == PA_SAMPLE_S24_32RE)
|
||||
r->work_format = PA_SAMPLE_FLOAT32NE;
|
||||
else
|
||||
r->work_format = PA_SAMPLE_S16NE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue