From 0e756e43774ef95ea9685e57f0c51331a9a7d1dc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Aug 2014 21:40:06 +0200 Subject: PcmExport: use class ConstBuffer --- src/pcm/PcmExport.hxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/pcm/PcmExport.hxx') diff --git a/src/pcm/PcmExport.hxx b/src/pcm/PcmExport.hxx index 61ac14c6f..75050e5c2 100644 --- a/src/pcm/PcmExport.hxx +++ b/src/pcm/PcmExport.hxx @@ -25,6 +25,7 @@ #include "AudioFormat.hxx" struct AudioFormat; +template struct ConstBuffer; /** * An object that handles export of PCM samples to some instance @@ -108,12 +109,9 @@ struct PcmExport { * * @param state an initialized and open pcm_export_state object * @param src the source PCM buffer - * @param src_size the size of #src in bytes - * @param dest_size_r returns the number of bytes of the destination buffer * @return the destination buffer (may be a pointer to the source buffer) */ - const void *Export(const void *src, size_t src_size, - size_t &dest_size_r); + ConstBuffer Export(ConstBuffer src); /** * Converts the number of consumed bytes from the pcm_export() -- cgit v1.2.3