pcm/Dsd2Pcm: remove unused "lsbf" flag
This commit is contained in:
parent
3f3104348e
commit
2073a2c1b0
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user