aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_pack.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-09 12:48:17 +0200
committerMax Kellermann <max@duempel.org>2011-10-10 10:24:05 +0200
commita47e9d1a4b5bd6b999eaec33624d7c96a29f24e6 (patch)
tree99d1bfef2c1e739dfba50717c26ee19107e9a496 /src/pcm_pack.h
parente93dd374a46270d6cd873b7e2db557b346b1aac7 (diff)
downloadmpd-a47e9d1a4b5bd6b999eaec33624d7c96a29f24e6.tar.gz
mpd-a47e9d1a4b5bd6b999eaec33624d7c96a29f24e6.tar.xz
mpd-a47e9d1a4b5bd6b999eaec33624d7c96a29f24e6.zip
pcm_pack: pass an "end" pointer instead of a sample count
Diffstat (limited to 'src/pcm_pack.h')
-rw-r--r--src/pcm_pack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcm_pack.h b/src/pcm_pack.h
index 0055e91df..6f275608c 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