From e504913b0f118ddaa8e14ae9f8325c3dd5a339a6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 28 Nov 2013 20:48:02 +0100 Subject: pcm: drop compatibility with libsamplerate older than 0.1.3 Remove compatibility code. --- src/pcm/PcmResampleLibsamplerate.cxx | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/pcm') diff --git a/src/pcm/PcmResampleLibsamplerate.cxx b/src/pcm/PcmResampleLibsamplerate.cxx index 9eac2d545..e61ff2edf 100644 --- a/src/pcm/PcmResampleLibsamplerate.cxx +++ b/src/pcm/PcmResampleLibsamplerate.cxx @@ -225,26 +225,6 @@ pcm_resample_lsr_16(PcmResampler *state, return dest_buffer; } -#ifdef HAVE_LIBSAMPLERATE_NOINT - -/* libsamplerate introduced these functions in v0.1.3 */ - -static void -src_int_to_float_array(const int *in, float *out, int len) -{ - while (len-- > 0) - *out++ = *in++ / (float)(1 << (24 - 1)); -} - -static void -src_float_to_int_array (const float *in, int *out, int len) -{ - while (len-- > 0) - *out++ = *in++ * (float)(1 << (24 - 1)); -} - -#endif - const int32_t * pcm_resample_lsr_32(PcmResampler *state, unsigned channels, -- cgit v1.2.3