Audio Lag

I finish my APP and it works well in the Simulator.

Its main function is play musical notes when i push 4 different buttons (each button with one note).

But when i build for Android and install on my phone, it play the songs with a little delay.

I push one of the buttons and after some little time, it play the song. The delay is very small, but i want that the app instantly play the song.

The song files are very small (just 21kb) and its format is .ogg.

Can you help me?

Hello @joorgemelo,

Are you pre-loading the sounds during a non-time-sensitive point in the app? Audio should generally be loaded into memory in advance of playing it, otherwise you may notice the slight lag you’re hearing now.

If you haven’t fully read the audio guide, please do so here:

http://docs.coronalabs.com/daily/guide/media/audioSystem/index.html

Take care,

Brent

Hello @joorgemelo,

Are you pre-loading the sounds during a non-time-sensitive point in the app? Audio should generally be loaded into memory in advance of playing it, otherwise you may notice the slight lag you’re hearing now.

If you haven’t fully read the audio guide, please do so here:

http://docs.coronalabs.com/daily/guide/media/audioSystem/index.html

Take care,

Brent