encoder/wave: support packed 24 bit samples
Convert to padded 24 bit samples, instead of falling back to 16 bit.
This commit is contained in:
parent
74beefcaf6
commit
0a218ee56a
1
NEWS
1
NEWS
|
@ -3,6 +3,7 @@ ver 0.16.6 (2010/??/??)
|
||||||
- fix assertion failure when resuming streams
|
- fix assertion failure when resuming streams
|
||||||
* encoder:
|
* encoder:
|
||||||
- flac, null, wave: fix buffer corruption bug
|
- flac, null, wave: fix buffer corruption bug
|
||||||
|
- wave: support packed 24 bit samples
|
||||||
* event_pipe: fix WIN32 regression
|
* event_pipe: fix WIN32 regression
|
||||||
* define WINVER in ./configure
|
* define WINVER in ./configure
|
||||||
* WIN32: autodetect filesystem encoding
|
* WIN32: autodetect filesystem encoding
|
||||||
|
|
|
@ -122,6 +122,11 @@ wave_encoder_open(struct encoder *_encoder,
|
||||||
encoder->bits = 16;
|
encoder->bits = 16;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SAMPLE_FORMAT_S24:
|
||||||
|
audio_format->format = SAMPLE_FORMAT_S24_P32;
|
||||||
|
encoder->bits = 24;
|
||||||
|
break;
|
||||||
|
|
||||||
case SAMPLE_FORMAT_S24_P32:
|
case SAMPLE_FORMAT_S24_P32:
|
||||||
encoder->bits = 24;
|
encoder->bits = 24;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue