From 0a218ee56ae37bcebeb716d5faa18f91e6e75556 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 28 Nov 2011 09:25:42 +0100 Subject: encoder/wave: support packed 24 bit samples Convert to padded 24 bit samples, instead of falling back to 16 bit. --- NEWS | 1 + src/encoder/wave_encoder.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index 441aac8cb..8857a628d 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ ver 0.16.6 (2010/??/??) - fix assertion failure when resuming streams * encoder: - flac, null, wave: fix buffer corruption bug + - wave: support packed 24 bit samples * event_pipe: fix WIN32 regression * define WINVER in ./configure * WIN32: autodetect filesystem encoding 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; -- cgit v1.2.3