[vlc-devel] [PATCH] soxr: increase priority

Thomas Guillem thomas at gllm.fr
Mon Mar 12 12:25:00 CET 2018


This resampler is used by PulseAudio and used and tested since 3 years by our
android port. There is very good quality/CPU time ratio since it uses SIMD on
armv7/arm64/x86/x86_64.

It should be enabled by default, but should the priority be higher than src ?
---
 modules/audio_filter/resampler/soxr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/audio_filter/resampler/soxr.c b/modules/audio_filter/resampler/soxr.c
index 2db9921a5a..70fad88087 100644
--- a/modules/audio_filter/resampler/soxr.c
+++ b/modules/audio_filter/resampler/soxr.c
@@ -71,11 +71,11 @@ vlc_module_begin ()
                 SOXR_QUALITY_TEXT, NULL, true )
         change_integer_list( soxr_resampler_quality_vlclist,
                              soxr_resampler_quality_vlctext )
-    set_capability ( "audio converter", 0 )
+    set_capability ( "audio converter", 51 )
     set_callbacks( OpenConverter, Close )
 
     add_submodule()
-    set_capability( "audio resampler", 0 )
+    set_capability( "audio resampler", 51 )
     set_callbacks( OpenResampler, Close )
     add_shortcut( "soxr" )
 vlc_module_end ()
-- 
2.11.0



More information about the vlc-devel mailing list