Fix the build for older macOS.
[dcpomatic.git] / src / lib / resampler.h
index afc28aefd01ce58a7ef2a1a431d29fff02ae4311..0dbd0b491edaa3c3b64d0ad00291ef0dca95ce91 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #include "types.h"
 #include <samplerate.h>
-#include <boost/shared_ptr.hpp>
-#include <boost/utility.hpp>
+
 
 class AudioBuffers;
 
-class Resampler : public boost::noncopyable
+
+class Resampler
 {
 public:
        Resampler (int, int, int);
        ~Resampler ();
 
-       boost::shared_ptr<const AudioBuffers> run (boost::shared_ptr<const AudioBuffers>);
-       boost::shared_ptr<const AudioBuffers> flush ();
+       Resampler (Resampler const&) = delete;
+       Resampler& operator= (Resampler const&) = delete;
+
+       std::shared_ptr<const AudioBuffers> run (std::shared_ptr<const AudioBuffers>);
+       std::shared_ptr<const AudioBuffers> flush ();
+       void reset ();
        void set_fast ();
 
 private:
-       SRC_STATE* _src;
+       SRC_STATE* _src = nullptr;
        int _in_rate;
        int _out_rate;
        int _channels;