[Android] [PATCH 4/4] No AudioTrack for Amazon Fire OS

Thomas Guillem thomas at gllm.fr
Tue Mar 31 17:24:28 CEST 2015


AudioTrack seems to be broken on Amazon Fire OS tablets. Indeed,
getPlaybackHeadPosition() returns an invalid position, therefore audio/video
synchronisation is not possible.
---
 libvlc/src/org/videolan/libvlc/HWDecoderUtil.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libvlc/src/org/videolan/libvlc/HWDecoderUtil.java b/libvlc/src/org/videolan/libvlc/HWDecoderUtil.java
index 3b335b7..caa00d7 100644
--- a/libvlc/src/org/videolan/libvlc/HWDecoderUtil.java
+++ b/libvlc/src/org/videolan/libvlc/HWDecoderUtil.java
@@ -97,6 +97,9 @@ public class HWDecoderUtil {
     };
 
     private static final AudioOutputBySOC[] sAudioOutputBySOCList = new AudioOutputBySOC[] {
+        /* getPlaybackHeadPosition returns an invalid position on Fire OS,
+         * thus Audiotrack is not usable */
+        new AudioOutputBySOC("ro.product.brand", "Amazon", AudioOutput.OPENSLES),
     };
 
     private static final HashMap<String, String> sSystemPropertyMap = new HashMap<String, String>();
-- 
2.1.3



More information about the Android mailing list