Commit 2073a2c1 authored by Max Kellermann's avatar Max Kellermann

pcm/Dsd2Pcm: remove unused "lsbf" flag

parent 3f310434
......@@ -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;
......
......@@ -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:
......
......@@ -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 };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment