summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-02 20:13:20 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-02 20:13:20 +0100
commite526999a0252193ee8e42ac841c7494bea44ecfb (patch)
tree1f4de8a505b566a3d1c475c8f41ab983db77f80c /src
parentb010bf3a39efe65db2251fbbf2640b2d9e539200 (diff)
Use soxr resampler.
Diffstat (limited to 'src')
-rw-r--r--src/lib/resampler.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc
index 2538f7dca..f54f4ec6a 100644
--- a/src/lib/resampler.cc
+++ b/src/lib/resampler.cc
@@ -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);
}