diff options
author | Max Kellermann <max@duempel.org> | 2009-01-08 00:47:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-08 00:47:04 +0100 |
commit | bb08679a702f0093077d49f76d5e597f92384fb1 (patch) | |
tree | ebab3b485e0c3c9adf9b38eac6b2687d07541430 /src/pcm_resample.c | |
parent | 2a83138913dbfc90958c52527fbfc1fc1bbf76e5 (diff) | |
download | mpd-bb08679a702f0093077d49f76d5e597f92384fb1.tar.gz mpd-bb08679a702f0093077d49f76d5e597f92384fb1.tar.xz mpd-bb08679a702f0093077d49f76d5e597f92384fb1.zip |
pcm_resample: use pcm_buffer (2/2)
Use the PCM buffer library for the libsamplerate output buffer.
Diffstat (limited to '')
-rw-r--r-- | src/pcm_resample.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pcm_resample.c b/src/pcm_resample.c index 0a6fa0148..647d9b4f6 100644 --- a/src/pcm_resample.c +++ b/src/pcm_resample.c @@ -17,6 +17,7 @@ */ #include "pcm_resample.h" +#include "config.h" #include <string.h> @@ -24,5 +25,10 @@ void pcm_resample_init(struct pcm_resample_state *state) { memset(state, 0, sizeof(*state)); +#ifdef HAVE_LIBSAMPLERATE + pcm_buffer_init(&state->in); + pcm_buffer_init(&state->out); +#endif + pcm_buffer_init(&state->buffer); } |