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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user