summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-02-26 17:41:18 +0100
committerMax Kellermann <max@duempel.org>2016-02-26 17:41:18 +0100
commite56066f721116103542beed421fc2d2bc67d4419 (patch)
tree3417edb664bee29405572e21d3ac4219231b4f2e /src
parent5e3844ac13d61cbbd13426300ec64316780080f1 (diff)
pcm/dsd: use PcmBuffer::GetT()
Diffstat (limited to 'src')
-rw-r--r--src/pcm/PcmDsd.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pcm/PcmDsd.cxx b/src/pcm/PcmDsd.cxx
index b74d812e2..6df6511e5 100644
--- a/src/pcm/PcmDsd.cxx
+++ b/src/pcm/PcmDsd.cxx
@@ -55,9 +55,7 @@ PcmDsd::ToFloat(unsigned channels, ConstBuffer<uint8_t> src)
const unsigned num_samples = src.size;
const unsigned num_frames = src.size / channels;
- float *dest;
- const size_t dest_size = num_samples * sizeof(*dest);
- dest = (float *)buffer.Get(dest_size);
+ float *dest = buffer.GetT<float>(num_samples);
for (unsigned c = 0; c < channels; ++c) {
if (dsd2pcm[c] == nullptr) {