X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fresampler.h;h=f51c3cdb57a3a889e4af224edb22e6975b5ab89d;hb=69f25e496ba409c02aa27b1e07dfcde34c86a32b;hp=4ee11a7f0954958e69a99bf09be75196394838c3;hpb=1dcfb3a26085ebb3703f40e2f51e43ce3d98be50;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;