pcm/PcmDsd: use struct ConstBuffer

This commit is contained in:
Max Kellermann
2013-11-29 22:06:14 +01:00
parent 6f47c1ca20
commit 413f7c64e5
3 changed files with 26 additions and 25 deletions

View File

@@ -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