aboutsummaryrefslogtreecommitdiff
path: root/src/pcm_resample.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-04-22 11:31:06 +0200
committerAnton Khirnov <anton@khirnov.net>2013-11-04 11:02:10 +0100
commit6fd304e5e6c8b386d3671f4932a74124fd37192a (patch)
tree0110c5339a4fe42276017f1fd74373baa1e25f22 /src/pcm_resample.c
parentd3018bfbb5f5712e6fe0f7ce534a362a0518d2c2 (diff)
Switch from autotools to a custom build system adapted from Libav.
Diffstat (limited to 'src/pcm_resample.c')
-rw-r--r--src/pcm_resample.c20
1 files changed, 10 insertions, 10 deletions
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 <string.h>
-#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,