# OpenSL vs AudioTrack on Android API 26+ (avoiding AAudio)

**URL:** <https://qa.fmod.com/t/opensl-vs-audiotrack-on-android-api-26-avoiding-aaudio/23421>\
**Category:** FMOD Engine\
**Created:** [October 2, 2025, 7:07pm UTC](https://qa.fmod.com/t/opensl-vs-audiotrack-on-android-api-26-avoiding-aaudio/23421 "2025-10-02T19:07:14Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [October 21, 2025, 4:31am UTC](https://qa.fmod.com/t/opensl-vs-audiotrack-on-android-api-26-avoiding-aaudio/23421/6 "2025-10-21T04:31:27Z")

</div>

Thank you for testing that and sharing your code.

I have been able to reproduce the same times. I will pass this info on to our development team. However, I will note our docs which addresses latency on Android: [FMOD Engine | Platforms Android - Audio Latency](https://fmod.com/docs/2.03/api/platforms-android.html#audio-latency).

> [@sviudes](#):
>
> Is it safe to always use OpenSL on API 26+ devices?

As OpenSl has been deprecated: [https://developer.android.com/ndk/guides/audio/opensl](https://developer.android.com/ndk/guides/audio/opensl), I cannot say that it will be safe on all devices. You could attempt to initialize the FMOD system with OpenSL and on failure resort to AAudio?

> [@sviudes](#):
>
> If not, is there a way to ask FMOD which one (OpenSL vs AudioTrack) is better for the current device, like calling init with AUTODETECT but excluding AAudio?

Unfortunately, you cannot filter outputs when using `AUTODETECT`, I could suggest this to our development team to look into however.

I will link to a post where some options for dealing with latency were discussed: [High latency with AAudio - #2 by jeff\_fmod](https://qa.fmod.com/t/high-latency-with-aaudio/19196/2).

---

_[View the full topic](https://qa.fmod.com/t/opensl-vs-audiotrack-on-android-api-26-avoiding-aaudio/23421)._
