pcm/Dop: add separate dsd_buffer for DSD_U16/32

The dop_buffer will be moved out soon.
This commit is contained in:
Max Kellermann 2019-06-17 12:28:48 +02:00
parent 458a1beed9
commit 8f9b3cbf0e
2 changed files with 9 additions and 2 deletions

View File

@ -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();

View File

@ -41,6 +41,13 @@ class PcmExport {
PcmBuffer order_buffer;
#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.