X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fresampler.h;h=0dbd0b491edaa3c3b64d0ad00291ef0dca95ce91;hb=c2a17a87868eba87072fc369102b2b3cd8905e5a;hp=5ce766f809612fa96904491660d4c2149cd85c70;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/resampler.h b/src/lib/resampler.h index 5ce766f80..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,24 +18,30 @@ */ + #include "types.h" #include -#include -#include + class AudioBuffers; -class Resampler : public boost::noncopyable + +class Resampler { public: - Resampler (int, int, int, bool fast); + 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;