From ab3bed81a5f6c52f6739e6d33fff197b3c889b1b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 14 Jul 2009 16:12:55 +0200 Subject: pulsesink: add 24bit sample formats Add check for pulseaudio 0.9.15 and enable 24bits samples in that case. --- ext/pulse/pulseutil.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ext/pulse/pulseutil.c') diff --git a/ext/pulse/pulseutil.c b/ext/pulse/pulseutil.c index 169c55b7..6fbf8377 100644 --- a/ext/pulse/pulseutil.c +++ b/ext/pulse/pulseutil.c @@ -91,6 +91,16 @@ gst_pulse_fill_sample_spec (GstRingBufferSpec * spec, pa_sample_spec * ss) ss->format = PA_SAMPLE_S32LE; else if (spec->format == GST_S32_BE && spec->width == 32) ss->format = PA_SAMPLE_S32BE; +#if HAVE_PULSE_0_9_15 + else if (spec->format == GST_S24_3LE && spec->width == 24) + ss->format = PA_SAMPLE_S24LE; + else if (spec->format == GST_S24_3BE && spec->width == 24) + ss->format = PA_SAMPLE_S24BE; + else if (spec->format == GST_S24_LE && spec->width == 32) + ss->format = PA_SAMPLE_S24_32LE; + else if (spec->format == GST_S24_BE && spec->width == 32) + ss->format = PA_SAMPLE_S24_32BE; +#endif else return FALSE; -- cgit