浏览代码

Fixed bug #4982 - Failed to open audio_device. Android 5.1 should be ok.

Sylvain 3 年之前
父节点
当前提交
cd86e269e4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java

+ 1 - 1
android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java

@@ -50,7 +50,7 @@ public class SDLAudioManager
         }
 
         /* AudioTrack has sample rate limitation of 48000 (fixed in 5.0.2) */
-        if (Build.VERSION.SDK_INT < 23) {
+        if (Build.VERSION.SDK_INT < 22) {
             if (sampleRate < 8000) {
                 sampleRate = 8000;
             } else if (sampleRate > 48000) {