diff options
author | Max Kellermann <max@duempel.org> | 2014-08-12 21:40:06 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-12 22:19:53 +0200 |
commit | 0e756e43774ef95ea9685e57f0c51331a9a7d1dc (patch) | |
tree | 8f935d93255755193ce3ae2473cbdf693a8c385a /src/pcm/PcmExport.hxx | |
parent | ee7282ce0ddb85e4e0d8174a8db6d3853b2b41a5 (diff) | |
download | mpd-0e756e43774ef95ea9685e57f0c51331a9a7d1dc.tar.gz mpd-0e756e43774ef95ea9685e57f0c51331a9a7d1dc.tar.xz mpd-0e756e43774ef95ea9685e57f0c51331a9a7d1dc.zip |
PcmExport: use class ConstBuffer
Diffstat (limited to 'src/pcm/PcmExport.hxx')
-rw-r--r-- | src/pcm/PcmExport.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
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<typename T> 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<void> Export(ConstBuffer<void> src); /** * Converts the number of consumed bytes from the pcm_export() |