From e12140cfce88985f9fcecb93214a94a0b9c33e7f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 14 Mar 2009 15:26:36 +0100 Subject: pcm_resample: choose the fallback resampler at runtime Even if libsamplerate support is enabled, compile the fallback resampler. When the user specifies the option "samplerate_converter=internal", it is chosen in favor of libsamplerate. This may help users with a weak FPU who don't want to compile a custom MPD from source, because the fallback resampler does not use floating point operations. --- src/pcm_resample_internal.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/pcm_resample_internal.h') diff --git a/src/pcm_resample_internal.h b/src/pcm_resample_internal.h index af62b7663..a10ba08cd 100644 --- a/src/pcm_resample_internal.h +++ b/src/pcm_resample_internal.h @@ -52,7 +52,7 @@ pcm_resample_lsr_32(struct pcm_resample_state *state, unsigned dest_rate, size_t *dest_size_r); -#else +#endif void pcm_resample_fallback_deinit(struct pcm_resample_state *state); @@ -75,5 +75,3 @@ pcm_resample_fallback_32(struct pcm_resample_state *state, size_t *dest_size_r); #endif - -#endif -- cgit v1.2.3