summaryrefslogtreecommitdiff
path: root/src/pcm/PcmDsd.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-01-14 23:29:03 +0100
committerMax Kellermann <max@musicpd.org>2020-01-14 23:29:03 +0100
commitee4615032936505c914a688c6e879318cbbf9204 (patch)
treed6ede9ab2e4c5d123f8e567e3ee6cd60b9a825da /src/pcm/PcmDsd.hxx
parent79c585bf0370c58594087c421f6f7a8d64066cbc (diff)
pcm/Dsd2Pcm: add class MultiDsd2Pcm
Diffstat (limited to 'src/pcm/PcmDsd.hxx')
-rw-r--r--src/pcm/PcmDsd.hxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/pcm/PcmDsd.hxx b/src/pcm/PcmDsd.hxx
index 6b36944b1..11b0efa97 100644
--- a/src/pcm/PcmDsd.hxx
+++ b/src/pcm/PcmDsd.hxx
@@ -21,11 +21,8 @@
#define MPD_PCM_DSD_HXX
#include "Buffer.hxx"
-#include "ChannelDefs.hxx"
#include "Dsd2Pcm.hxx"
-#include <array>
-
#include <stdint.h>
template<typename T> struct ConstBuffer;
@@ -36,10 +33,12 @@ template<typename T> struct ConstBuffer;
class PcmDsd {
PcmBuffer buffer;
- std::array<Dsd2Pcm, MAX_CHANNELS> dsd2pcm;
+ MultiDsd2Pcm dsd2pcm;
public:
- void Reset() noexcept;
+ void Reset() noexcept {
+ dsd2pcm.Reset();
+ }
ConstBuffer<float> ToFloat(unsigned channels,
ConstBuffer<uint8_t> src) noexcept;