summaryrefslogtreecommitdiff
path: root/src/pcm
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-06-17 12:28:48 +0200
committerMax Kellermann <max@musicpd.org>2019-06-17 22:11:23 +0200
commit8f9b3cbf0ea7ec7e5e8c89d322a4be44a408ff22 (patch)
tree9f682d8e1dcd088dbeb0d61e19ba2f426c573ddc /src/pcm
parent458a1beed99279898ca2f8e60c354c3bb5367098 (diff)
pcm/Dop: add separate dsd_buffer for DSD_U16/32
The dop_buffer will be moved out soon.
Diffstat (limited to 'src/pcm')
-rw-r--r--src/pcm/Export.cxx4
-rw-r--r--src/pcm/Export.hxx7
2 files changed, 9 insertions, 2 deletions
diff --git a/src/pcm/Export.cxx b/src/pcm/Export.cxx
index 48171b694..38bd5241d 100644
--- a/src/pcm/Export.cxx
+++ b/src/pcm/Export.cxx
@@ -158,12 +158,12 @@ PcmExport::Export(ConstBuffer<void> data) noexcept
#ifdef ENABLE_DSD
if (dsd_u16)
- data = Dsd8To16(dop_buffer, channels,
+ data = Dsd8To16(dsd_buffer, channels,
ConstBuffer<uint8_t>::FromVoid(data))
.ToVoid();
if (dsd_u32)
- data = Dsd8To32(dop_buffer, channels,
+ data = Dsd8To32(dsd_buffer, channels,
ConstBuffer<uint8_t>::FromVoid(data))
.ToVoid();
diff --git a/src/pcm/Export.hxx b/src/pcm/Export.hxx
index ad58651ae..8dfee34b6 100644
--- a/src/pcm/Export.hxx
+++ b/src/pcm/Export.hxx
@@ -42,6 +42,13 @@ class PcmExport {
#ifdef ENABLE_DSD
/**
+ * The buffer is used to convert DSD samples to DSD_U16 or DSD_U32.
+ *
+ * @see #dsd_u16, #dsd_u32
+ */
+ PcmBuffer dsd_buffer;
+
+ /**
* The buffer is used to convert DSD samples to the
* DoP format.
*