diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-04 21:51:54 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-05 00:25:08 +0100 |
| commit | f227d182fa5a829fdeabf9eca8f33da5ce7f4e0d (patch) | |
| tree | 753bbb75ed9a41d5b01967a2c16667285abae42a /src/lib/resampler.h | |
| parent | af7196df44dc81c7ab48486ca270f4036fb8bbfd (diff) | |
Use libsamplerate for resampling instead of FFmpeg / libsoxr.
libsoxr was crashing on Windows and seems somewhat
unmaintained.
Diffstat (limited to 'src/lib/resampler.h')
| -rw-r--r-- | src/lib/resampler.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/resampler.h b/src/lib/resampler.h index 36b991ddf..5a69d0983 100644 --- a/src/lib/resampler.h +++ b/src/lib/resampler.h @@ -18,9 +18,7 @@ */ #include "types.h" -extern "C" { -#include <libswresample/swresample.h> -} +#include <samplerate.h> #include <boost/shared_ptr.hpp> #include <boost/utility.hpp> @@ -36,7 +34,7 @@ public: boost::shared_ptr<const AudioBuffers> flush (); private: - SwrContext* _swr_context; + SRC_STATE* _src; int _in_rate; int _out_rate; int _channels; |
