X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fresampler.h;h=f51c3cdb57a3a889e4af224edb22e6975b5ab89d;hb=3b932abd0c7634483911e1d5361e12b2d094ae6f;hp=4ee11a7f0954958e69a99bf09be75196394838c3;hpb=015fe447cfe25babc55cf8ed282bb909e4713aa0;p=dcpomatic.git diff --git a/src/lib/resampler.h b/src/lib/resampler.h index 4ee11a7f0..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,27 +17,24 @@ */ +#include "types.h" +#include #include #include -extern "C" { -#include -} -#include "types.h" -#include "audio_content.h" 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;