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:
Max Kellermann
2011-11-28 09:25:42 +01:00
parent 74beefcaf6
commit 0a218ee56a
2 changed files with 6 additions and 0 deletions

View File

@@ -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;