[Android] Always set soxr as resampler

Geoffrey Métais git at videolan.org
Thu Feb 21 09:36:17 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 14 10:07:19 2019 +0100| [8c38caff6459890ad0e9868c39f628f8f9d3bfb6] | committer: Geoffrey Métais

Always set soxr as resampler

> https://code.videolan.org/videolan/vlc-android/commit/8c38caff6459890ad0e9868c39f628f8f9d3bfb6
---

 vlc-android/src/org/videolan/vlc/util/VLCOptions.java | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/util/VLCOptions.java b/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
index b9142f301..8b66576de 100644
--- a/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
+++ b/vlc-android/src/org/videolan/vlc/util/VLCOptions.java
@@ -109,7 +109,7 @@ public class VLCOptions {
         options.add("--android-display-chroma");
         options.add(chroma);
         options.add("--audio-resampler");
-        options.add(getResampler());
+        options.add("soxr");
         options.add("--audiotrack-session-id=" + AUDIOTRACK_SESSION_ID);
 
         options.add("--freetype-rel-fontsize=" + freetypeRelFontsize);
@@ -192,11 +192,6 @@ public class VLCOptions {
         return ret;
     }
 
-    private static String getResampler() {
-        final VLCUtil.MachineSpecs m = VLCUtil.getMachineSpecs();
-        return (m == null || m.processors >= 2) ? "soxr" : "ugly";
-    }
-
     public static void setMediaOptions(Media media, Context context, int flags) {
         boolean noHardwareAcceleration = (flags & MediaWrapper.MEDIA_NO_HWACCEL) != 0;
         boolean noVideo = (flags & MediaWrapper.MEDIA_VIDEO) == 0;



More information about the Android mailing list