From 3c0c939689e25b56462c12330003f1b5da7b9887 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Nov 2013 22:48:23 +0100 Subject: pcm/PcmConvert: use struct ConstBuffer internally --- src/pcm/PcmConvert.hxx | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'src/pcm/PcmConvert.hxx') 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 +template 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 Convert16(ConstBuffer src, Error &error); + ConstBuffer Convert24(ConstBuffer src, Error &error); + ConstBuffer Convert32(ConstBuffer src, Error &error); + ConstBuffer ConvertFloat(ConstBuffer src, Error &error); }; extern const Domain pcm_convert_domain; -- cgit v1.2.3