diff options
author | Max Kellermann <max@duempel.org> | 2011-11-28 09:25:42 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-11-28 09:25:42 +0100 |
commit | 0a218ee56ae37bcebeb716d5faa18f91e6e75556 (patch) | |
tree | eff07cd0cb17a1572eb1072982456ea66fadfbd9 /src | |
parent | 74beefcaf6a2a82785649752bf346e5c8fb9ec62 (diff) | |
download | mpd-0a218ee56ae37bcebeb716d5faa18f91e6e75556.tar.gz mpd-0a218ee56ae37bcebeb716d5faa18f91e6e75556.tar.xz mpd-0a218ee56ae37bcebeb716d5faa18f91e6e75556.zip |
encoder/wave: support packed 24 bit samples
Convert to padded 24 bit samples, instead of falling back to 16 bit.
Diffstat (limited to 'src')
-rw-r--r-- | src/encoder/wave_encoder.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/encoder/wave_encoder.c b/src/encoder/wave_encoder.c index 4e830bd14..3a64c5197 100644 --- a/src/encoder/wave_encoder.c +++ b/src/encoder/wave_encoder.c @@ -122,6 +122,11 @@ wave_encoder_open(struct encoder *_encoder, encoder->bits = 16; break; + case SAMPLE_FORMAT_S24: + audio_format->format = SAMPLE_FORMAT_S24_P32; + encoder->bits = 24; + break; + case SAMPLE_FORMAT_S24_P32: encoder->bits = 24; break; |