summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/resampler.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-01-16 03:15:39 +0100
committerLennart Poettering <lennart@poettering.net>2009-01-16 03:15:39 +0100
commit6dc76d11583979ba73dbe4bbf54f52fc1af901e2 (patch)
treee8f1825194108d0dc8444a4e7d35c1735141f30f /src/pulsecore/resampler.c
parent9955398fdafc58f23a86fc05f4832b5846b3b040 (diff)
add support for 24bit packed samples
Diffstat (limited to 'src/pulsecore/resampler.c')
-rw-r--r--src/pulsecore/resampler.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c
index f0515ebe..67c37581 100644
--- a/src/pulsecore/resampler.c
+++ b/src/pulsecore/resampler.c
@@ -257,8 +257,10 @@ 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 ||
b->format == PA_SAMPLE_S32NE || b->format == PA_SAMPLE_S32RE ||
- b->format == PA_SAMPLE_FLOAT32NE || b->format == PA_SAMPLE_FLOAT32RE)
+ b->format == PA_SAMPLE_FLOAT32NE || b->format == PA_SAMPLE_FLOAT32RE ||
+ b->format == PA_SAMPLE_S24NE || b->format == PA_SAMPLE_S24RE)
r->work_format = PA_SAMPLE_FLOAT32NE;
else
r->work_format = PA_SAMPLE_S16NE;