From 7f34e9410eeb638b44ba1c7f7711844bd410b3a7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 7 Jan 2009 22:20:30 +0100 Subject: pcm: added pcm_convert_deinit(), pcm_resample_deinit() Free memory allocated by libsamplerate when the output or the decoder is closed. --- src/pcm_resample_fallback.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/pcm_resample_fallback.c') diff --git a/src/pcm_resample_fallback.c b/src/pcm_resample_fallback.c index a55efb824..560d68a87 100644 --- a/src/pcm_resample_fallback.c +++ b/src/pcm_resample_fallback.c @@ -22,6 +22,11 @@ #include #include +void pcm_resample_deinit(G_GNUC_UNUSED struct pcm_resample_state *state) +{ + /* no state, nothing to do */ +} + /* resampling code blatantly ripped from ESD */ size_t pcm_resample_16(uint8_t channels, -- cgit v1.2.3