Hi.
I'm having an issue with Android and playing a simple sound effect. There is a noticeable delay from the time you press the screen and when the fx sound plays. Another thing that happens is that when you press it multiple times there is almost like an echo.
I am aware of the sound delays in Android but I have played other games and I cannot same the same about them.
In specific if I play "Flappy Bird" there is no delay.
Any input would be welcomed.
Thank you.
Comments
Explanation is here: http://members.giderosmobile.com/knowledgebase.php?action=displayarticle&id=44
The echo is probably because you are firing the same fx several times, so you have several instances playing together but slightly after each other.
I'm using wav files and very simple, short sounds effects.
I there anything else that I could do to reduce the delay and the echo?
Thank you.
Try testing on a real device with sound. I have found sound on the emulator can be a bit delayed/different.
And then only play them when needed:
https://github.com/ar2rsawseen/GameTemplate/blob/master/classes/Sounds.lua
https://deluxepixel.com
I'm testing directly in the device (Moto X, Android 4.4).
Most of the time I use the Android player and sometimes I use the exported project for Eclipse.
In both cases I get the same result.
I will use the suggested approach.
But what I'm currently doing is that when the player touches the screen I play a sound (short fx sound, wav format).
I tried checking for the time difference between presses and if it was too small I will not play the sound but it resulted in touches with no sound played but it was expected and it felt weird.
Thank you all for your help.
I will provide more details ASAP.
Thank you all.
It's been mentioned before...
http://giderosmobile.com/forum/discussion/1117/sound-wav-playback-latency-on-android-mainly-samsung-devices-/p1
https://deluxepixel.com
Anyway, as we are moving to the new sound engine, which will use soundbanks, the performance should be greater, although do not want to promise much before preliminary tests
Likes: SinisterSoft
I'm experiencing latency on Android (kitkat 4.4)
wav sound FX have a noticeable delay...
Thanks
I'm noticing a delay on my Galaxy S3.
I'm playing a simple 'click' sound effect (wav).
Any way to prevent this?
https://deluxepixel.com
Also you can choose 44100Hz to 22050Hz.
It will reduce the size of the wav but also the quality.
I'm not sure but I think it could be good to test if it decrease the latency
The Gobb : https://play.google.com/store/apps/details?id=fr.toastapp.thegobb
https://source.android.com/devices/audio/latency_design.html
imho we should move to this maybe on Android?
https://deluxepixel.com
Likes: SinisterSoft
https://deluxepixel.com
Likes: SinisterSoft
https://github.com/gideros/gideros/issues/113
Likes: Tom2012
https://deluxepixel.com
https://deluxepixel.com