pcm/Dop: add separate dsd_buffer for DSD_U16/32
The dop_buffer will be moved out soon.
This commit is contained in:
parent
458a1beed9
commit
8f9b3cbf0e
|
@ -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();
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue