I’m developing an game that uses SDL 2.26.2, and I’ve found that on a particular Android TV device the audio is choppy. It sounds like the audio callback isn’t getting invoked at the right frequency, or something along those lines. The problematic device is an Onn Android 4K TV running Android TV 10. The audio is fine on other Android devices I’ve tested (and also fine on Windows, Mac, Linux).
I found this relatively recent change which seems related:
But it looks like that fix is specifically for SDL3.
As a workaround, I’ve found that if I set the audio driver to “openslES” using SDL_AudioInit(“openslES”), the problem is resolved.
- Is avoiding AAudio and using openslES my best option?
- Are there any downsides to using openslES instead of AAudio when on Android?
- Any other recommendation?