X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fresampler.h;h=f51c3cdb57a3a889e4af224edb22e6975b5ab89d;hb=5b3e3df6c9352e31dd932a5af215eabbf2cf27c8;hp=7c85773c000a050d2556b94d38d07ca106922d47;hpb=f72dc5859fc91e09e85ad16138601fbec7922fb8;p=dcpomatic.git diff --git a/src/lib/resampler.h b/src/lib/resampler.h index 7c85773c0..f51c3cdb5 100644 --- a/src/lib/resampler.h +++ b/src/lib/resampler.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013 Carl Hetherington + Copyright (C) 2013-2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,24 +17,24 @@ */ +#include "types.h" +#include #include -extern "C" { -#include -} +#include class AudioBuffers; -class Resampler +class Resampler : public boost::noncopyable { public: - Resampler (int, int, int); + Resampler (int, int, int, bool fast); ~Resampler (); boost::shared_ptr run (boost::shared_ptr); boost::shared_ptr flush (); -private: - SwrContext* _swr_context; +private: + SRC_STATE* _src; int _in_rate; int _out_rate; int _channels;