diff options
-rw-r--r-- | src/pcm/Dsd2Pcm.cxx | 2 | ||||
-rw-r--r-- | src/pcm/Dsd2Pcm.hxx | 2 | ||||
-rw-r--r-- | src/pcm/PcmDsd.cxx | 2 |
3 files changed, 1 insertions, 5 deletions
diff --git a/src/pcm/Dsd2Pcm.cxx b/src/pcm/Dsd2Pcm.cxx index 94cdacb90..0b99cc5e4 100644 --- a/src/pcm/Dsd2Pcm.cxx +++ b/src/pcm/Dsd2Pcm.cxx @@ -193,14 +193,12 @@ Dsd2Pcm::TranslateSample(size_t ffp, uint8_t src) noexcept void Dsd2Pcm::Translate(size_t samples, const uint8_t *gcc_restrict src, ptrdiff_t src_stride, - bool lsbf, float *dst, ptrdiff_t dst_stride) noexcept { size_t ffp = fifopos; while (samples-- > 0) { uint8_t bite1 = *src; src += src_stride; - if (lsbf) bite1 = bit_reverse(bite1); *dst = TranslateSample(ffp, bite1); dst += dst_stride; ffp = (ffp + 1) & FIFOMASK; diff --git a/src/pcm/Dsd2Pcm.hxx b/src/pcm/Dsd2Pcm.hxx index 3a35cc8d3..b36c7007e 100644 --- a/src/pcm/Dsd2Pcm.hxx +++ b/src/pcm/Dsd2Pcm.hxx @@ -66,13 +66,11 @@ public: * @param samples -- number of octets/samples to "translate" * @param src -- pointer to first octet (input) * @param src_stride -- src pointer increment - * @param lsbitfirst -- bitorder, 0=msb first, 1=lsbfirst * @param dst -- pointer to first float (output) * @param dst_stride -- dst pointer increment */ void Translate(size_t samples, const uint8_t *src, ptrdiff_t src_stride, - bool lsbitfirst, float *dst, ptrdiff_t dst_stride) noexcept; private: diff --git a/src/pcm/PcmDsd.cxx b/src/pcm/PcmDsd.cxx index 01097b33c..e742ed1fa 100644 --- a/src/pcm/PcmDsd.cxx +++ b/src/pcm/PcmDsd.cxx @@ -61,7 +61,7 @@ PcmDsd::ToFloat(unsigned channels, ConstBuffer<uint8_t> src) noexcept dsd2pcm[c]->Translate(num_frames, src.data + c, channels, - false, dest + c, channels); + dest + c, channels); } return { dest, num_samples }; |