Use libsamplerate for resampling instead of FFmpeg / libsoxr.
[dcpomatic.git] / src / lib / resampler.h
index 36b991ddf5190a140a933aa8780bf06c4ed5a544..5a69d09834e81bc483c350f26fc5ca5553263341 100644 (file)
@@ -18,9 +18,7 @@
 */
 
 #include "types.h"
-extern "C" {
-#include <libswresample/swresample.h>
-}
+#include <samplerate.h>
 #include <boost/shared_ptr.hpp>
 #include <boost/utility.hpp>
 
@@ -36,7 +34,7 @@ public:
        boost::shared_ptr<const AudioBuffers> flush ();
 
 private:
-       SwrContext* _swr_context;
+       SRC_STATE* _src;
        int _in_rate;
        int _out_rate;
        int _channels;