aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/PcmConvert.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-29 22:48:23 +0100
committerMax Kellermann <max@duempel.org>2013-11-29 22:48:23 +0100
commit3c0c939689e25b56462c12330003f1b5da7b9887 (patch)
treef72f026edcac170a39e32acd00040db32c286ec4 /src/pcm/PcmConvert.hxx
parent413f7c64e5faa82083140bae856aaabff20c870c (diff)
downloadmpd-3c0c939689e25b56462c12330003f1b5da7b9887.tar.gz
mpd-3c0c939689e25b56462c12330003f1b5da7b9887.tar.xz
mpd-3c0c939689e25b56462c12330003f1b5da7b9887.zip
pcm/PcmConvert: use struct ConstBuffer internally
Diffstat (limited to 'src/pcm/PcmConvert.hxx')
-rw-r--r--src/pcm/PcmConvert.hxx20
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;