diff options
author | Max Kellermann <max@duempel.org> | 2012-03-21 19:41:41 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-21 19:41:41 +0100 |
commit | 55708b39c3434771e62b4cd474365be8d52d03db (patch) | |
tree | 9519f81aee8117b8b6d9d124ee4827776dd397ad /src | |
parent | 8c5ebdff360021a25b43418d3cd60ea975f5e245 (diff) | |
download | mpd-55708b39c3434771e62b4cd474365be8d52d03db.tar.gz mpd-55708b39c3434771e62b4cd474365be8d52d03db.tar.xz mpd-55708b39c3434771e62b4cd474365be8d52d03db.zip |
audio_format: DSD_OVER_USB is padded to 32 bit
For simplicity, pad the dCS samples to 32 bit. Packed 24 bit samples
are rarely used. This patch does not include a real code change,
because there is no user of DSD_OVER_USB yet.
Diffstat (limited to 'src')
-rw-r--r-- | src/audio_format.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio_format.h b/src/audio_format.h index fc4b85880..7170b9756 100644 --- a/src/audio_format.h +++ b/src/audio_format.h @@ -57,8 +57,8 @@ enum sample_format { SAMPLE_FORMAT_DSD, /** - * DSD packed in 24 bit samples (no padding), according to the - * dCS suggested standard: + * DSD packed in 24 bit samples (padded to 32 bit), according + * to the dCS suggested standard: * http://www.dcsltd.co.uk/page/assets/DSDoverUSB.pdf */ SAMPLE_FORMAT_DSD_OVER_USB, @@ -249,12 +249,12 @@ sample_format_size(enum sample_format format) return 2; case SAMPLE_FORMAT_S24: - case SAMPLE_FORMAT_DSD_OVER_USB: return 3; case SAMPLE_FORMAT_S24_P32: case SAMPLE_FORMAT_S32: case SAMPLE_FORMAT_FLOAT: + case SAMPLE_FORMAT_DSD_OVER_USB: return 4; case SAMPLE_FORMAT_DSD: |