Commit e56066f7 authored by Max Kellermann's avatar Max Kellermann

pcm/dsd: use PcmBuffer::GetT()

parent 5e3844ac
......@@ -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) {
......
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