aboutsummaryrefslogtreecommitdiffstats
path: root/src/filter/FilterInternal.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-12 16:09:07 +0200
committerMax Kellermann <max@duempel.org>2014-08-12 16:40:51 +0200
commit7244dc45110118631c16448907c344163bcb402c (patch)
treecd6a05d27069d6f5234cb8f0af7c7c5034362cef /src/filter/FilterInternal.hxx
parent56f61a6d59cfc6a97005d85599963cafdfdeaba8 (diff)
downloadmpd-7244dc45110118631c16448907c344163bcb402c.tar.gz
mpd-7244dc45110118631c16448907c344163bcb402c.tar.xz
mpd-7244dc45110118631c16448907c344163bcb402c.zip
Filter: FilterPCM() returns ConstBuffer
API simplification. We can now avoid abusing a "size_t*" as additional return value.
Diffstat (limited to 'src/filter/FilterInternal.hxx')
-rw-r--r--src/filter/FilterInternal.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/filter/FilterInternal.hxx b/src/filter/FilterInternal.hxx
index 1fa36f379..d2e619540 100644
--- a/src/filter/FilterInternal.hxx
+++ b/src/filter/FilterInternal.hxx
@@ -29,6 +29,7 @@
struct AudioFormat;
class Error;
+template<typename T> struct ConstBuffer;
class Filter {
public:
@@ -58,17 +59,13 @@ public:
*
* @param filter the filter object
* @param src the input buffer
- * @param src_size the size of #src_buffer in bytes
- * @param dest_size_r the size of the returned buffer
* @param error location to store the error occurring, or nullptr
* to ignore errors.
* @return the destination buffer on success (will be
* invalidated by Close() or FilterPCM()), nullptr on
* error
*/
- virtual const void *FilterPCM(const void *src, size_t src_size,
- size_t *dest_size_r,
- Error &error) = 0;
+ virtual ConstBuffer<void> FilterPCM(ConstBuffer<void> src, Error &error) = 0;
};
#endif