diff options
author | Max Kellermann <max@duempel.org> | 2012-03-01 00:25:08 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-01 01:15:22 +0100 |
commit | 25164969932590894671895944f30743d344e541 (patch) | |
tree | 80cdce06ec46865c7de0d228441fba4c8178f4f7 /src/pcm_format.c | |
parent | 3b565b5f972ad65ab3e498c29eaf4f825eacece4 (diff) | |
download | mpd-25164969932590894671895944f30743d344e541.tar.gz mpd-25164969932590894671895944f30743d344e541.tar.xz mpd-25164969932590894671895944f30743d344e541.zip |
audio_format: add DSD sample format
Basic support for Direct Stream Digital. No conversion yet, and no
decoder/output plugin support.
Diffstat (limited to '')
-rw-r--r-- | src/pcm_format.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pcm_format.c b/src/pcm_format.c index a20d8bb8d..c7cf910ed 100644 --- a/src/pcm_format.c +++ b/src/pcm_format.c @@ -147,6 +147,8 @@ pcm_convert_to_16(struct pcm_buffer *buffer, struct pcm_dither *dither, switch (src_format) { case SAMPLE_FORMAT_UNDEFINED: + case SAMPLE_FORMAT_DSD: + case SAMPLE_FORMAT_DSD_LSBFIRST: break; case SAMPLE_FORMAT_S8: @@ -265,6 +267,8 @@ pcm_convert_to_24(struct pcm_buffer *buffer, switch (src_format) { case SAMPLE_FORMAT_UNDEFINED: + case SAMPLE_FORMAT_DSD: + case SAMPLE_FORMAT_DSD_LSBFIRST: break; case SAMPLE_FORMAT_S8: @@ -389,6 +393,8 @@ pcm_convert_to_32(struct pcm_buffer *buffer, switch (src_format) { case SAMPLE_FORMAT_UNDEFINED: + case SAMPLE_FORMAT_DSD: + case SAMPLE_FORMAT_DSD_LSBFIRST: break; case SAMPLE_FORMAT_S8: @@ -524,6 +530,8 @@ pcm_convert_to_float(struct pcm_buffer *buffer, { switch (src_format) { case SAMPLE_FORMAT_UNDEFINED: + case SAMPLE_FORMAT_DSD: + case SAMPLE_FORMAT_DSD_LSBFIRST: break; case SAMPLE_FORMAT_S8: |