aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_utils.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-21 22:53:16 +0200
committerMax Kellermann <max@duempel.org>2008-10-21 22:53:16 +0200
commite6d90d4e83263c37bbee878aed782bf13669daa1 (patch)
tree08ce9780ddad6f653edad4b958e844f7e9be568f /src/pcm_utils.h
parentca6e613a7f3a05d414353c44d18d30c5e77ac8c3 (diff)
downloadmpd-e6d90d4e83263c37bbee878aed782bf13669daa1.tar.gz
mpd-e6d90d4e83263c37bbee878aed782bf13669daa1.tar.xz
mpd-e6d90d4e83263c37bbee878aed782bf13669daa1.zip
pcm_utils: added pcm_convert_init()
Instead of manually calling memset(0) on the pcm_convert_state struct, client code should use a library function from pcm_utils.c. This way, we can change the semantics of the struct easily.
Diffstat (limited to 'src/pcm_utils.h')
-rw-r--r--src/pcm_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pcm_utils.h b/src/pcm_utils.h
index b67fae00e..3fc15e8b7 100644
--- a/src/pcm_utils.h
+++ b/src/pcm_utils.h
@@ -51,6 +51,8 @@ void pcm_volume(char *buffer, int bufferSize,
void pcm_mix(char *buffer1, const char *buffer2, size_t size,
const struct audio_format *format, float portion1);
+void pcm_convert_init(struct pcm_convert_state *state);
+
size_t pcm_convert(const struct audio_format *inFormat,
const char *inBuffer, size_t inSize,
const struct audio_format *outFormat,