diff options
author | Max Kellermann <max@duempel.org> | 2008-10-23 20:00:51 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-23 20:00:51 +0200 |
commit | 6b1c54ef9646abddfbd4960c207b32426300a90c (patch) | |
tree | 5b3ae6bf5fc377cf9c705c85948ab5b85e31743c /src/pcm_utils.h | |
parent | 098991f8e8a974d2eee39645fa23c43a4c8b06c1 (diff) | |
download | mpd-6b1c54ef9646abddfbd4960c207b32426300a90c.tar.gz mpd-6b1c54ef9646abddfbd4960c207b32426300a90c.tar.xz mpd-6b1c54ef9646abddfbd4960c207b32426300a90c.zip |
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.
Diffstat (limited to 'src/pcm_utils.h')
-rw-r--r-- | src/pcm_utils.h | 16 |
1 files changed, 2 insertions, 14 deletions
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 <stdint.h> #include <stddef.h> -#ifdef HAVE_LIBSAMPLERATE -#include <samplerate.h> -#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; |