diff options
author | Max Kellermann <max@duempel.org> | 2014-08-12 16:09:07 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-12 16:40:51 +0200 |
commit | 7244dc45110118631c16448907c344163bcb402c (patch) | |
tree | cd6a05d27069d6f5234cb8f0af7c7c5034362cef /src/filter/FilterInternal.hxx | |
parent | 56f61a6d59cfc6a97005d85599963cafdfdeaba8 (diff) | |
download | mpd-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.hxx | 7 |
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 |