Commit 8f9b3cbf authored by Max Kellermann's avatar Max Kellermann

pcm/Dop: add separate dsd_buffer for DSD_U16/32

The dop_buffer will be moved out soon.
parent 458a1bee
......@@ -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();
......
......@@ -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.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment