aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_mix.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-01 00:25:08 +0100
committerMax Kellermann <max@duempel.org>2012-03-01 01:15:22 +0100
commit25164969932590894671895944f30743d344e541 (patch)
tree80cdce06ec46865c7de0d228441fba4c8178f4f7 /src/pcm_mix.c
parent3b565b5f972ad65ab3e498c29eaf4f825eacece4 (diff)
downloadmpd-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 'src/pcm_mix.c')
-rw-r--r--src/pcm_mix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pcm_mix.c b/src/pcm_mix.c
index 9f76d568f..84bb5526d 100644
--- a/src/pcm_mix.c
+++ b/src/pcm_mix.c
@@ -120,6 +120,8 @@ pcm_add_vol(void *buffer1, const void *buffer2, size_t size,
switch (format) {
case SAMPLE_FORMAT_UNDEFINED:
case SAMPLE_FORMAT_S24:
+ case SAMPLE_FORMAT_DSD:
+ case SAMPLE_FORMAT_DSD_LSBFIRST:
/* not implemented */
return false;
@@ -229,6 +231,8 @@ pcm_add(void *buffer1, const void *buffer2, size_t size,
switch (format) {
case SAMPLE_FORMAT_UNDEFINED:
case SAMPLE_FORMAT_S24:
+ case SAMPLE_FORMAT_DSD:
+ case SAMPLE_FORMAT_DSD_LSBFIRST:
/* not implemented */
return false;