diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-16 18:39:36 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-16 18:39:36 +0100 |
commit | 4a137637976360e94dfc304c291b3166b3c03970 (patch) | |
tree | 602a857f4aedf525d5776a51895bba49169fa2e2 /src/pulsecore/resampler.c | |
parent | 6dc76d11583979ba73dbe4bbf54f52fc1af901e2 (diff) |
Add support for 24bit samples encoded in the LSB of 32 bit words
Diffstat (limited to 'src/pulsecore/resampler.c')
-rw-r--r-- | src/pulsecore/resampler.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c index 67c37581..6b3836e1 100644 --- a/src/pulsecore/resampler.c +++ b/src/pulsecore/resampler.c @@ -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; |