[Android] default to opensles aout on 2.3+

Rafaël Carré git at videolan.org
Sun Dec 16 01:13:11 CET 2012


vlc-ports/android | branch: master | Rafaël Carré <funman at videolan.org> | Sun Dec 16 01:08:52 2012 +0100| [4c3b1024da96c795ba981c74fbb4efbcee81e577] | committer: Rafaël Carré

default to opensles aout on 2.3+

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

 vlc-android/src/org/videolan/vlc/LibVLC.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/LibVLC.java b/vlc-android/src/org/videolan/vlc/LibVLC.java
index b7083f4..64805bf 100644
--- a/vlc-android/src/org/videolan/vlc/LibVLC.java
+++ b/vlc-android/src/org/videolan/vlc/LibVLC.java
@@ -165,9 +165,9 @@ public class LibVLC {
         sUseIomx = pref.getBoolean("enable_iomx", false);
 
         try {
-            sAout = Integer.parseInt(pref.getString("aout", String.valueOf(AOUT_AUDIOTRACK_JAVA)));
+            sAout = Integer.parseInt(pref.getString("aout", String.valueOf(AOUT_OPENSLES)));
         } catch (NumberFormatException nfe) {
-            sAout = AOUT_AUDIOTRACK_JAVA;
+            sAout = AOUT_OPENSLES;
         }
 
         if (!Util.isGingerbreadOrLater() && sAout == AOUT_OPENSLES) {



More information about the Android mailing list