diff options
author | Max Kellermann <max@musicpd.org> | 2020-01-14 23:29:03 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-01-14 23:29:03 +0100 |
commit | ee4615032936505c914a688c6e879318cbbf9204 (patch) | |
tree | d6ede9ab2e4c5d123f8e567e3ee6cd60b9a825da /src/pcm/PcmDsd.hxx | |
parent | 79c585bf0370c58594087c421f6f7a8d64066cbc (diff) |
pcm/Dsd2Pcm: add class MultiDsd2Pcm
Diffstat (limited to 'src/pcm/PcmDsd.hxx')
-rw-r--r-- | src/pcm/PcmDsd.hxx | 9 |
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; |