From 6b1c54ef9646abddfbd4960c207b32426300a90c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Oct 2008 20:00:51 +0200 Subject: pcm_utils: moved code to pcm_resample.c Separate the resampling code from the rest of pcm_utils.c. Create two sub-libraries: pcm_resample_libsamplerate.c and pcm_resample_fallback.c. --- src/pcm_utils.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/pcm_utils.h') diff --git a/src/pcm_utils.h b/src/pcm_utils.h index 835ba187f..3599b7076 100644 --- a/src/pcm_utils.h +++ b/src/pcm_utils.h @@ -19,28 +19,16 @@ #ifndef PCM_UTILS_H #define PCM_UTILS_H -#include "../config.h" +#include "pcm_resample.h" #include "pcm_dither.h" #include #include -#ifdef HAVE_LIBSAMPLERATE -#include -#endif - struct audio_format; struct pcm_convert_state { -#ifdef HAVE_LIBSAMPLERATE - SRC_STATE *state; - SRC_DATA data; - size_t dataInSize; - size_t dataOutSize; - int8_t lastChannels; - uint32_t lastInSampleRate; - uint32_t lastOutSampleRate; -#endif + struct pcm_resample_state resample; struct pcm_dither_24 dither; -- cgit v1.2.3