I've just porting to Android for my first project. Everything seem to be OK, but sound is delayed a little bit. Have you ever got the same issue before ? (I tested on Samsung galaxy tab 10.1 & samsung galaxy gio 5660)
@Rickyngk which sound file are you trying to play?mp3,wav? You can load your sound file in the main.lua and then play whereever you want i think it will make a difference. And also if your sound file can be too much high quality. for example for a sound effect no need to use 512 kps mp3 just use low compression and no stero maybe 8 bit. Of course if you are not programming some dj box:D
I used mp3 for background music & wav for sfx. I don't care background music (nobody knows if it's delayed ) ). About wav (sound sfx), I used 176kbps , pcm_s16le
as far as i know mp3 sounds are streamed by gideros but wav sounds are stored in memory not streamed. So try to load your wav sounds in the main lua before game even started. Then just play them. And use wav in your sound effects.
Comments
which sound file are you trying to play?mp3,wav?
You can load your sound file in the main.lua and then play whereever you want i think it will make a difference.
And also if your sound file can be too much high quality. for example for a sound effect no need to use 512 kps mp3 just use low compression and no stero maybe 8 bit.
Of course if you are not programming some dj box:D
About wav (sound sfx), I used 176kbps , pcm_s16le
I'll do a double check