mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
add support for 24bit packed samples
This commit is contained in:
parent
9955398fda
commit
6dc76d1158
15 changed files with 370 additions and 32 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue