diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-16 18:39:36 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-16 18:39:36 +0100 |
commit | 4a137637976360e94dfc304c291b3166b3c03970 (patch) | |
tree | 602a857f4aedf525d5776a51895bba49169fa2e2 /src/pulsecore/protocol-native.c | |
parent | 6dc76d11583979ba73dbe4bbf54f52fc1af901e2 (diff) |
Add support for 24bit samples encoded in the LSB of 32 bit words
Diffstat (limited to 'src/pulsecore/protocol-native.c')
-rw-r--r-- | src/pulsecore/protocol-native.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c index b1ef64f2..54122679 100644 --- a/src/pulsecore/protocol-native.c +++ b/src/pulsecore/protocol-native.c @@ -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; } } |