From a47e9d1a4b5bd6b999eaec33624d7c96a29f24e6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 9 Oct 2011 12:48:17 +0200 Subject: pcm_pack: pass an "end" pointer instead of a sample count --- src/pcm_pack.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pcm_pack.h') diff --git a/src/pcm_pack.h b/src/pcm_pack.h index 0055e91d..6f275608 100644 --- a/src/pcm_pack.h +++ b/src/pcm_pack.h @@ -40,7 +40,7 @@ * @param reverse_endian is src and dest in non-host byte order? */ void -pcm_pack_24(uint8_t *dest, const int32_t *src, unsigned num_samples, +pcm_pack_24(uint8_t *dest, const int32_t *src, const int32_t *src_end, bool reverse_endian); /** @@ -53,7 +53,7 @@ pcm_pack_24(uint8_t *dest, const int32_t *src, unsigned num_samples, * @param reverse_endian is src and dest in non-host byte order? */ void -pcm_unpack_24(int32_t *dest, const uint8_t *src, unsigned num_samples, +pcm_unpack_24(int32_t *dest, const uint8_t *src, const uint8_t *src_end, bool reverse_endian); #endif -- cgit v1.2.3