aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_export.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-27 00:37:04 +0200
committerMax Kellermann <max@duempel.org>2012-03-27 00:37:14 +0200
commita0730cf264f4bfebffb685f3f08dd8e1072aee38 (patch)
treec3f738c0111a77e15b25421eb6f41ffe6f828650 /src/pcm_export.c
parentec61b3a5fc9cc66900debda8645613e743642e3f (diff)
downloadmpd-a0730cf264f4bfebffb685f3f08dd8e1072aee38.tar.gz
mpd-a0730cf264f4bfebffb685f3f08dd8e1072aee38.tar.xz
mpd-a0730cf264f4bfebffb685f3f08dd8e1072aee38.zip
pcm_export: support packing SAMPLE_FORMAT_DSD_OVER_USB
It's a padded 24 bit format.
Diffstat (limited to 'src/pcm_export.c')
-rw-r--r--src/pcm_export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm_export.c b/src/pcm_export.c
index 5579c7cc3..134acc18f 100644
--- a/src/pcm_export.c
+++ b/src/pcm_export.c
@@ -40,7 +40,7 @@ pcm_export_open(struct pcm_export_state *state,
enum sample_format sample_format,
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;
if (reverse_endian) {