mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Add support for 24bit samples encoded in the LSB of 32 bit words
This commit is contained in:
parent
6dc76d1158
commit
4a13763797
13 changed files with 339 additions and 19 deletions
|
|
@ -2642,9 +2642,9 @@ static void fixup_sample_spec(pa_native_connection *c, pa_sample_spec *fixed, co
|
|||
}
|
||||
|
||||
if (c->version < 15) {
|
||||
if (fixed->format == PA_SAMPLE_S24LE)
|
||||
if (fixed->format == PA_SAMPLE_S24LE || fixed->format == PA_SAMPLE_S24_32LE)
|
||||
fixed->format = PA_SAMPLE_FLOAT32LE;
|
||||
if (fixed->format == PA_SAMPLE_S24BE)
|
||||
if (fixed->format == PA_SAMPLE_S24BE || fixed->format == PA_SAMPLE_S24_32BE)
|
||||
fixed->format = PA_SAMPLE_FLOAT32BE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue