From cd86e269e468e5ba312bb78ce6895d79b38d09fa Mon Sep 17 00:00:00 2001 From: Sylvain Date: Sat, 20 Nov 2021 19:40:26 +0100 Subject: [PATCH] Fixed bug #4982 - Failed to open audio_device. Android 5.1 should be ok. --- .../app/src/main/java/org/libsdl/app/SDLAudioManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java b/android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java index efd068c17..2bfc71860 100644 --- a/android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java +++ b/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) {