diff options
author | Max Kellermann <max@duempel.org> | 2013-11-29 22:48:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-29 22:48:23 +0100 |
commit | 3c0c939689e25b56462c12330003f1b5da7b9887 (patch) | |
tree | f72f026edcac170a39e32acd00040db32c286ec4 /src/pcm/PcmConvert.hxx | |
parent | 413f7c64e5faa82083140bae856aaabff20c870c (diff) |
pcm/PcmConvert: use struct ConstBuffer internally
Diffstat (limited to 'src/pcm/PcmConvert.hxx')
-rw-r--r-- | src/pcm/PcmConvert.hxx | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/pcm/PcmConvert.hxx b/src/pcm/PcmConvert.hxx index 2db24f87b..74f4e350c 100644 --- a/src/pcm/PcmConvert.hxx +++ b/src/pcm/PcmConvert.hxx @@ -28,6 +28,7 @@ #include <stddef.h> +template<typename T> struct ConstBuffer; class Error; class Domain; @@ -91,21 +92,10 @@ public: Error &error); private: - const int16_t *Convert16(const void *src_buffer, size_t src_size, - size_t *dest_size_r, - Error &error); - - const int32_t *Convert24(const void *src_buffer, size_t src_size, - size_t *dest_size_r, - Error &error); - - const int32_t *Convert32(const void *src_buffer, size_t src_size, - size_t *dest_size_r, - Error &error); - - const float *ConvertFloat(const void *src_buffer, size_t src_size, - size_t *dest_size_r, - Error &error); + ConstBuffer<int16_t> Convert16(ConstBuffer<void> src, Error &error); + ConstBuffer<int32_t> Convert24(ConstBuffer<void> src, Error &error); + ConstBuffer<int32_t> Convert32(ConstBuffer<void> src, Error &error); + ConstBuffer<float> ConvertFloat(ConstBuffer<void> src, Error &error); }; extern const Domain pcm_convert_domain; |