add support for 24bit packed samples

This commit is contained in:
Lennart Poettering 2009-01-16 03:15:39 +01:00
parent 9955398fda
commit 6dc76d1158
15 changed files with 370 additions and 32 deletions

View file

@ -2640,6 +2640,13 @@ static void fixup_sample_spec(pa_native_connection *c, pa_sample_spec *fixed, co
if (fixed->format == PA_SAMPLE_S32BE)
fixed->format = PA_SAMPLE_FLOAT32BE;
}
if (c->version < 15) {
if (fixed->format == PA_SAMPLE_S24LE)
fixed->format = PA_SAMPLE_FLOAT32LE;
if (fixed->format == PA_SAMPLE_S24BE)
fixed->format = PA_SAMPLE_FLOAT32BE;
}
}
static void sink_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_sink *sink) {