From 6fd304e5e6c8b386d3671f4932a74124fd37192a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 22 Apr 2013 11:31:06 +0200 Subject: Switch from autotools to a custom build system adapted from Libav. --- src/pcm_resample.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/pcm_resample.c') diff --git a/src/pcm_resample.c b/src/pcm_resample.c index 4bc057a7..bb75db6c 100644 --- a/src/pcm_resample.c +++ b/src/pcm_resample.c @@ -20,17 +20,17 @@ #include "config.h" #include "pcm_resample_internal.h" -#ifdef HAVE_LIBSAMPLERATE +#if CONFIG_LIBSAMPLERATE #include "conf.h" #endif #include -#ifdef HAVE_LIBSAMPLERATE +#if CONFIG_LIBSAMPLERATE static bool lsr_enabled; #endif -#ifdef HAVE_LIBSAMPLERATE +#if CONFIG_LIBSAMPLERATE static bool pcm_resample_lsr_enabled(void) { @@ -41,7 +41,7 @@ pcm_resample_lsr_enabled(void) bool pcm_resample_global_init(GError **error_r) { -#ifdef HAVE_LIBSAMPLERATE +#if CONFIG_LIBSAMPLERATE const char *converter = config_get_string(CONF_SAMPLERATE_CONVERTER, ""); @@ -58,7 +58,7 @@ pcm_resample_global_init(GError **error_r) void pcm_resample_init(struct pcm_resample_state *state) { -#ifdef HAVE_LIBSAMPLERATE +#if CONFIG_LIBSAMPLERATE if (pcm_resample_lsr_enabled()) pcm_resample_lsr_init(state); else @@ -68,7 +68,7 @@ void pcm_resample_init(struct pcm_resample_state *state) void pcm_resample_deinit(struct pcm_resample_state *state) { -#ifdef HAVE_LIBSAMPLERATE +#if CONFIG_LIBSAMPLERATE if (pcm_resample_lsr_enabled()) pcm_resample_lsr_deinit(state); else @@ -79,7 +79,7 @@ void pcm_resample_deinit(struct pcm_resample_state *state) void pcm_resample_reset(struct pcm_resample_state *state) { -#ifdef HAVE_LIBSAMPLERATE +#if CONFIG_LIBSAMPLERATE pcm_resample_lsr_reset(state); #else (void)state; @@ -94,7 +94,7 @@ pcm_resample_float(struct pcm_resample_state *state, unsigned dest_rate, size_t *dest_size_r, GError **error_r) { -#ifdef HAVE_LIBSAMPLERATE +#if CONFIG_LIBSAMPLERATE if (pcm_resample_lsr_enabled()) return pcm_resample_lsr_float(state, channels, src_rate, src_buffer, src_size, @@ -121,7 +121,7 @@ pcm_resample_16(struct pcm_resample_state *state, unsigned dest_rate, size_t *dest_size_r, GError **error_r) { -#ifdef HAVE_LIBSAMPLERATE +#if CONFIG_LIBSAMPLERATE if (pcm_resample_lsr_enabled()) return pcm_resample_lsr_16(state, channels, src_rate, src_buffer, src_size, @@ -143,7 +143,7 @@ pcm_resample_32(struct pcm_resample_state *state, unsigned dest_rate, size_t *dest_size_r, GError **error_r) { -#ifdef HAVE_LIBSAMPLERATE +#if CONFIG_LIBSAMPLERATE if (pcm_resample_lsr_enabled()) return pcm_resample_lsr_32(state, channels, src_rate, src_buffer, src_size, -- cgit v1.2.3