From 77e1050304911be3bd93ee774c1039d0e8f84c6e Mon Sep 17 00:00:00 2001 From: Tim Murison Date: Fri, 17 Feb 2017 15:45:55 -0500 Subject: [PATCH] Reduce the quality of internal SRC computations to improve resampler performance especially on embedded platforms. Has no effect on the likelihood of finding a fingerprint match. --- src/audio/ffmpeg_audio_processor_swresample.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/audio/ffmpeg_audio_processor_swresample.h b/src/audio/ffmpeg_audio_processor_swresample.h index 2e81e23..0cc349d 100644 --- a/src/audio/ffmpeg_audio_processor_swresample.h +++ b/src/audio/ffmpeg_audio_processor_swresample.h @@ -25,6 +25,7 @@ class FFmpegAudioProcessor { av_opt_set_int(m_swr_ctx, "filter_size", 16, 0); av_opt_set_int(m_swr_ctx, "phase_shift", 8, 0); av_opt_set_int(m_swr_ctx, "linear_interp", 1, 0); + av_opt_set_int(m_swr_ctx, "tsf", AV_SAMPLE_FMT_S16P, 0); av_opt_set_double(m_swr_ctx, "cutoff", 0.8, 0); }