aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_dither.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-09 12:37:32 +0200
committerMax Kellermann <max@duempel.org>2011-10-10 10:24:06 +0200
commit20c6159c041cc5ec644c51009503cf6801b6fcab (patch)
tree55e38810c32ca6059bafd61578705172feb299e2 /src/pcm_dither.h
parenta47e9d1a4b5bd6b999eaec33624d7c96a29f24e6 (diff)
downloadmpd-20c6159c041cc5ec644c51009503cf6801b6fcab.tar.gz
mpd-20c6159c041cc5ec644c51009503cf6801b6fcab.tar.xz
mpd-20c6159c041cc5ec644c51009503cf6801b6fcab.zip
pcm_dither: pass an "end" pointer instead of a sample count
This is easier and more efficient to loop on, because only two variables get modified (src and dest).
Diffstat (limited to '')
-rw-r--r--src/pcm_dither.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pcm_dither.h b/src/pcm_dither.h
index 5ba4d7bb4..046dea21e 100644
--- a/src/pcm_dither.h
+++ b/src/pcm_dither.h
@@ -36,12 +36,10 @@ pcm_dither_24_init(struct pcm_dither *dither)
void
pcm_dither_24_to_16(struct pcm_dither *dither,
- int16_t *dest, const int32_t *src,
- unsigned num_samples);
+ int16_t *dest, const int32_t *src, const int32_t *src_end);
void
pcm_dither_32_to_16(struct pcm_dither *dither,
- int16_t *dest, const int32_t *src,
- unsigned num_samples);
+ int16_t *dest, const int32_t *src, const int32_t *src_end);
#endif