[Android] No AudioTrack for Amazon Fire OS

Thomas Guillem git at videolan.org
Wed Apr 1 12:11:41 CEST 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 31 17:16:09 2015 +0200| [fc057c08313fb6c8c43728debd818d10185996c3] | committer: Thomas Guillem

No AudioTrack for Amazon Fire OS

AudioTrack seems to be broken on Amazon Fire OS tablets. Indeed,
getPlaybackHeadPosition() returns an invalid position, therefore audio/video
synchronisation is not possible.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=fc057c08313fb6c8c43728debd818d10185996c3
---

 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>();



More information about the Android mailing list