diff options
author | Max Kellermann <max@duempel.org> | 2014-08-23 14:40:30 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-23 14:46:34 +0200 |
commit | fa82264604e6a8e342c932e8fd526017622e3f9f (patch) | |
tree | 8e5d802aaef702deec883b5cbfedb7498bd48b68 | |
parent | ae467aa42e802114eef353fc43d455e775bee7de (diff) | |
download | mpd-fa82264604e6a8e342c932e8fd526017622e3f9f.tar.gz mpd-fa82264604e6a8e342c932e8fd526017622e3f9f.tar.xz mpd-fa82264604e6a8e342c932e8fd526017622e3f9f.zip |
pcm/PcmDsd: remove "lsbfirst" support
Unused. Bit reversing is done in the decoder.
-rw-r--r-- | src/pcm/PcmConvert.cxx | 3 | ||||
-rw-r--r-- | src/pcm/PcmDsd.cxx | 5 | ||||
-rw-r--r-- | src/pcm/PcmDsd.hxx | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/src/pcm/PcmConvert.cxx b/src/pcm/PcmConvert.cxx index ba9a691fc..13ec9ac92 100644 --- a/src/pcm/PcmConvert.cxx +++ b/src/pcm/PcmConvert.cxx @@ -124,8 +124,7 @@ PcmConvert::Convert(ConstBuffer<void> buffer, Error &error) if (format.format == SampleFormat::DSD) { auto s = ConstBuffer<uint8_t>::FromVoid(buffer); - auto d = dsd.ToFloat(format.channels, - false, s); + auto d = dsd.ToFloat(format.channels, s); if (d.IsNull()) { error.Set(pcm_domain, "DSD to PCM conversion failed"); diff --git a/src/pcm/PcmDsd.cxx b/src/pcm/PcmDsd.cxx index ee549658d..53d26d480 100644 --- a/src/pcm/PcmDsd.cxx +++ b/src/pcm/PcmDsd.cxx @@ -48,8 +48,7 @@ PcmDsd::Reset() } ConstBuffer<float> -PcmDsd::ToFloat(unsigned channels, bool lsbfirst, - ConstBuffer<uint8_t> src) +PcmDsd::ToFloat(unsigned channels, ConstBuffer<uint8_t> src) { assert(!src.IsNull()); assert(!src.IsEmpty()); @@ -72,7 +71,7 @@ PcmDsd::ToFloat(unsigned channels, bool lsbfirst, dsd2pcm_translate(dsd2pcm[c], num_frames, src.data + c, channels, - lsbfirst, dest + c, channels); + false, dest + c, channels); } return { dest, num_samples }; diff --git a/src/pcm/PcmDsd.hxx b/src/pcm/PcmDsd.hxx index cb3ef1fd6..e3e3a3cb1 100644 --- a/src/pcm/PcmDsd.hxx +++ b/src/pcm/PcmDsd.hxx @@ -41,7 +41,7 @@ public: void Reset(); - ConstBuffer<float> ToFloat(unsigned channels, bool lsbfirst, + ConstBuffer<float> ToFloat(unsigned channels, ConstBuffer<uint8_t> src); }; |