# High latency with AAudio

**URL:** <https://qa.fmod.com/t/high-latency-with-aaudio/19196>\
**Category:** FMOD Engine\
**Tags:** android, cpp\
**Created:** [August 28, 2022, 12:26pm UTC](https://qa.fmod.com/t/high-latency-with-aaudio/19196 "2022-08-28T12:26:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [August 29, 2022, 11:55pm UTC](https://qa.fmod.com/t/high-latency-with-aaudio/19196/2 "2022-08-29T23:55:17Z")

</div>

[Audio Latency](https://fmod.com/docs/2.02/api/platforms-android.html#audio-latency) is a known issue with Android in general, but there may be an unknown issue with different FMOD output types on specific devices. Do you have any more details on which devices they were using?  
As for general latency tips:

- Set a smaller buffer size using [`System::setDSPBufferSize`](https://fmod.com/docs/2.02/api/core-api-system.html#system_setdspbuffersize). The lowest I have gone before noticing issues was 32.
- Pre-load sounds with [`System::createSound`](https://fmod.com/docs/2.02/api/core-api-system.html#system_createsound) rather than creating them as needed and playing them all at once.
- Export your audio files in the Vorbis format and create them with the [`FMOD_CREATECOMPRESSEDSAMPLE`](https://fmod.com/docs/2.02/api/core-api-common.html#fmod_createcompressedsample) flag. This will increase CPU usage but should reduce load times and memory usage.
- Only use [`FMOD_CREATESTREAM`](https://fmod.com/docs/2.02/api/core-api-common.html#fmod_createstream) for very large audio files.

---

_[View the full topic](https://qa.fmod.com/t/high-latency-with-aaudio/19196)._
