diff options
author | Max Kellermann <max@duempel.org> | 2009-01-07 22:20:30 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-07 22:20:30 +0100 |
commit | 7f34e9410eeb638b44ba1c7f7711844bd410b3a7 (patch) | |
tree | ac6dfdc40ee3ad04733151ba396f153c719822cf /src/pcm_convert.c | |
parent | 97b844ec72a415da962ee37d6f5b5e527ded13d3 (diff) | |
download | mpd-7f34e9410eeb638b44ba1c7f7711844bd410b3a7.tar.gz mpd-7f34e9410eeb638b44ba1c7f7711844bd410b3a7.tar.xz mpd-7f34e9410eeb638b44ba1c7f7711844bd410b3a7.zip |
pcm: added pcm_convert_deinit(), pcm_resample_deinit()
Free memory allocated by libsamplerate when the output or the decoder
is closed.
Diffstat (limited to 'src/pcm_convert.c')
-rw-r--r-- | src/pcm_convert.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pcm_convert.c b/src/pcm_convert.c index f9fc9a64b..13c7405e3 100644 --- a/src/pcm_convert.c +++ b/src/pcm_convert.c @@ -37,6 +37,11 @@ void pcm_convert_init(struct pcm_convert_state *state) pcm_dither_24_init(&state->dither); } +void pcm_convert_deinit(struct pcm_convert_state *state) +{ + pcm_resample_deinit(&state->resample); +} + static size_t pcm_convert_16(const struct audio_format *src_format, const void *src_buffer, size_t src_size, |