Commit a0730cf2 authored by Max Kellermann's avatar Max Kellermann

pcm_export: support packing SAMPLE_FORMAT_DSD_OVER_USB

It's a padded 24 bit format.
parent ec61b3a5
...@@ -40,7 +40,7 @@ pcm_export_open(struct pcm_export_state *state, ...@@ -40,7 +40,7 @@ pcm_export_open(struct pcm_export_state *state,
enum sample_format sample_format, enum sample_format sample_format,
bool pack, bool reverse_endian) bool pack, bool reverse_endian)
{ {
state->pack24 = pack && sample_format == SAMPLE_FORMAT_S24_P32; state->pack24 = pack && (sample_format == SAMPLE_FORMAT_S24_P32 || sample_format == SAMPLE_FORMAT_DSD_OVER_USB);
state->reverse_endian = 0; state->reverse_endian = 0;
if (reverse_endian) { if (reverse_endian) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment