aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm_utils.h')
-rw-r--r--src/pcm_utils.h16
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;