Use soxr resampler.
authorCarl Hetherington <cth@carlh.net>
Wed, 2 Sep 2015 19:13:20 +0000 (20:13 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 2 Sep 2015 19:13:20 +0000 (20:13 +0100)
ChangeLog
src/lib/resampler.cc

index d6821b4a2af9266d5641afb9459b3b6d4fe75388..6f393bcf61592cb03a3fb4dee43458698cb4b5c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-02  Carl Hetherington  <cth@carlh.net>
+
+       * Switch to soxr resampler as it seems
+       to have fewer artefacts in some cases (#682, possibly #493).
+
 2015-09-02  c.hetherington  <cth@carlh.net>
 
        * Fix problems when changing the number
index 2538f7dca57080d718954fdb6f216753b78ae7c2..f54f4ec6abd3ab16c16ac48de8a408f93d4f254a 100644 (file)
@@ -52,6 +52,8 @@ Resampler::Resampler (int in, int out, int channels)
        av_opt_set_int (_swr_context, "isr", _in_rate, 0);
        av_opt_set_int (_swr_context, "osr", _out_rate, 0);
 
+       av_opt_set (_swr_context, "resampler", "soxr", 0);
+
        swr_init (_swr_context);
 }