pcm: drop compatibility with libsamplerate older than 0.1.3

Remove compatibility code.
This commit is contained in:
Max Kellermann
2013-11-28 20:48:02 +01:00
parent af4133e3c9
commit e504913b0f
2 changed files with 1 additions and 29 deletions

View File

@@ -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,