pcm/PcmDsd: remove "lsbfirst" support
Unused. Bit reversing is done in the decoder.
This commit is contained in:
parent
ae467aa42e
commit
fa82264604
@ -124,8 +124,7 @@ PcmConvert::Convert(ConstBuffer<void> buffer, Error &error)
|
|||||||
|
|
||||||
if (format.format == SampleFormat::DSD) {
|
if (format.format == SampleFormat::DSD) {
|
||||||
auto s = ConstBuffer<uint8_t>::FromVoid(buffer);
|
auto s = ConstBuffer<uint8_t>::FromVoid(buffer);
|
||||||
auto d = dsd.ToFloat(format.channels,
|
auto d = dsd.ToFloat(format.channels, s);
|
||||||
false, s);
|
|
||||||
if (d.IsNull()) {
|
if (d.IsNull()) {
|
||||||
error.Set(pcm_domain,
|
error.Set(pcm_domain,
|
||||||
"DSD to PCM conversion failed");
|
"DSD to PCM conversion failed");
|
||||||
|
@ -48,8 +48,7 @@ PcmDsd::Reset()
|
|||||||
}
|
}
|
||||||
|
|
||||||
ConstBuffer<float>
|
ConstBuffer<float>
|
||||||
PcmDsd::ToFloat(unsigned channels, bool lsbfirst,
|
PcmDsd::ToFloat(unsigned channels, ConstBuffer<uint8_t> src)
|
||||||
ConstBuffer<uint8_t> src)
|
|
||||||
{
|
{
|
||||||
assert(!src.IsNull());
|
assert(!src.IsNull());
|
||||||
assert(!src.IsEmpty());
|
assert(!src.IsEmpty());
|
||||||
@ -72,7 +71,7 @@ PcmDsd::ToFloat(unsigned channels, bool lsbfirst,
|
|||||||
|
|
||||||
dsd2pcm_translate(dsd2pcm[c], num_frames,
|
dsd2pcm_translate(dsd2pcm[c], num_frames,
|
||||||
src.data + c, channels,
|
src.data + c, channels,
|
||||||
lsbfirst, dest + c, channels);
|
false, dest + c, channels);
|
||||||
}
|
}
|
||||||
|
|
||||||
return { dest, num_samples };
|
return { dest, num_samples };
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
|
|
||||||
void Reset();
|
void Reset();
|
||||||
|
|
||||||
ConstBuffer<float> ToFloat(unsigned channels, bool lsbfirst,
|
ConstBuffer<float> ToFloat(unsigned channels,
|
||||||
ConstBuffer<uint8_t> src);
|
ConstBuffer<uint8_t> src);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user