pcm_pack: pass an "end" pointer instead of a sample count

This commit is contained in:
Max Kellermann
2011-10-09 12:48:17 +02:00
parent e93dd374a4
commit a47e9d1a4b
5 changed files with 13 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ test_pcm_pack_24(void)
uint8_t dest[N * 3];
pcm_pack_24(dest, src, N, false);
pcm_pack_24(dest, src, src + N, false);
for (unsigned i = 0; i < N; ++i) {
int32_t d;
@@ -71,7 +71,7 @@ test_pcm_unpack_24(void)
int32_t dest[N];
pcm_unpack_24(dest, src, N, false);
pcm_unpack_24(dest, src, src + G_N_ELEMENTS(src), false);
for (unsigned i = 0; i < N; ++i) {
int32_t s;