diff options
author | Max Kellermann <max@duempel.org> | 2013-11-29 22:06:14 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-29 22:06:14 +0100 |
commit | 413f7c64e5faa82083140bae856aaabff20c870c (patch) | |
tree | 382ac5c4c68b5683e4a133cc5fdd322fa6f9fadc /src/pcm/PcmDsd.hxx | |
parent | 6f47c1ca207965366ef1bc8143f118dbcd68da6b (diff) | |
download | mpd-413f7c64e5faa82083140bae856aaabff20c870c.tar.gz mpd-413f7c64e5faa82083140bae856aaabff20c870c.tar.xz mpd-413f7c64e5faa82083140bae856aaabff20c870c.zip |
pcm/PcmDsd: use struct ConstBuffer
Diffstat (limited to 'src/pcm/PcmDsd.hxx')
-rw-r--r-- | src/pcm/PcmDsd.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pcm/PcmDsd.hxx b/src/pcm/PcmDsd.hxx index d807f8570..b9b6d51ee 100644 --- a/src/pcm/PcmDsd.hxx +++ b/src/pcm/PcmDsd.hxx @@ -25,6 +25,8 @@ #include <stdint.h> +template<typename T> struct ConstBuffer; + /** * Wrapper for the dsd2pcm library. */ @@ -39,9 +41,8 @@ public: void Reset(); - const float *ToFloat(unsigned channels, bool lsbfirst, - const uint8_t *src, size_t src_size, - size_t *dest_size_r); + ConstBuffer<float> ToFloat(unsigned channels, bool lsbfirst, + ConstBuffer<uint8_t> src); }; #endif |