diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-16 03:15:39 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-16 03:15:39 +0100 |
commit | 6dc76d11583979ba73dbe4bbf54f52fc1af901e2 (patch) | |
tree | e8f1825194108d0dc8444a4e7d35c1735141f30f /src/pulsecore/protocol-native.c | |
parent | 9955398fdafc58f23a86fc05f4832b5846b3b040 (diff) |
add support for 24bit packed samples
Diffstat (limited to 'src/pulsecore/protocol-native.c')
-rw-r--r-- | src/pulsecore/protocol-native.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c index af013da3..b1ef64f2 100644 --- a/src/pulsecore/protocol-native.c +++ b/src/pulsecore/protocol-native.c @@ -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) { |