aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_format.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-07 23:56:34 +0100
committerMax Kellermann <max@duempel.org>2009-01-07 23:56:34 +0100
commit5fe7e3bc1465a1a5f618b50f87aa0266d22ec75e (patch)
tree89fdb2c5abc33581b4b5cee4e7cb9e9e548e8276 /src/pcm_format.h
parent954c2b5a2518e3e5c2a87595c18320de2cac14d6 (diff)
downloadmpd-5fe7e3bc1465a1a5f618b50f87aa0266d22ec75e.tar.gz
mpd-5fe7e3bc1465a1a5f618b50f87aa0266d22ec75e.tar.xz
mpd-5fe7e3bc1465a1a5f618b50f87aa0266d22ec75e.zip
pcm_format: use the pcm_buffer library
Replace a "static" buffer with the PCM buffer library.
Diffstat (limited to 'src/pcm_format.h')
-rw-r--r--src/pcm_format.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pcm_format.h b/src/pcm_format.h
index 7304963f4..628155dd4 100644
--- a/src/pcm_format.h
+++ b/src/pcm_format.h
@@ -22,15 +22,17 @@
#include <stdint.h>
#include <stddef.h>
+struct pcm_buffer;
struct pcm_dither_24;
const int16_t *
-pcm_convert_to_16(struct pcm_dither_24 *dither,
+pcm_convert_to_16(struct pcm_buffer *buffer, struct pcm_dither_24 *dither,
uint8_t bits, const void *src,
size_t src_size, size_t *dest_size_r);
const int32_t *
-pcm_convert_to_24(uint8_t bits, const void *src,
+pcm_convert_to_24(struct pcm_buffer *buffer,
+ uint8_t bits, const void *src,
size_t src_size, size_t *dest_size_r);
#endif