X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fresampler.h;h=0dbd0b491edaa3c3b64d0ad00291ef0dca95ce91;hb=06ccbd71896e73221122ef61014dd64fe345536a;hp=4b19dc511b891e988c33b4a89b22af8c78da4eb9;hpb=fa4d2529d63bcfa7cf7c516b7227e20a1b6dec7e;p=dcpomatic.git diff --git a/src/lib/resampler.h b/src/lib/resampler.h index 4b19dc511..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,26 +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;