X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fresampler.h;h=0dbd0b491edaa3c3b64d0ad00291ef0dca95ce91;hp=afc28aefd01ce58a7ef2a1a431d29fff02ae4311;hb=182b9d2e2feb6545592868606aaf0f0146095481;hpb=0cb31de2be2b51a8bc19e55ceb1b86dc26ea1c42 diff --git a/src/lib/resampler.h b/src/lib/resampler.h index afc28aefd..0dbd0b491 100644 --- a/src/lib/resampler.h +++ b/src/lib/resampler.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2015 Carl Hetherington + Copyright (C) 2013-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,25 +18,30 @@ */ + #include "types.h" #include -#include -#include + class AudioBuffers; -class Resampler : public boost::noncopyable + +class Resampler { public: Resampler (int, int, int); ~Resampler (); - boost::shared_ptr run (boost::shared_ptr); - boost::shared_ptr flush (); + Resampler (Resampler const&) = delete; + Resampler& operator= (Resampler const&) = delete; + + std::shared_ptr run (std::shared_ptr); + std::shared_ptr flush (); + void reset (); void set_fast (); private: - SRC_STATE* _src; + SRC_STATE* _src = nullptr; int _in_rate; int _out_rate; int _channels;