X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fresampler.h;h=f51c3cdb57a3a889e4af224edb22e6975b5ab89d;hb=504c63b3d62038bc486ca8a09e77fbb403907edd;hp=21ef412deb02d9e79109203ef6e5ad7ea3f05b9f;hpb=e894cfe3d891135d1b92b62603a464e42bd6ed5c;p=dcpomatic.git diff --git a/src/lib/resampler.h b/src/lib/resampler.h index 21ef412de..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 @@ -18,10 +18,7 @@ */ #include "types.h" -#include "audio_content.h" -extern "C" { -#include -} +#include #include #include @@ -30,14 +27,14 @@ class AudioBuffers; 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;