Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Addressing the sound delay in Android - Gideros Forum

Addressing the sound delay in Android

EricCarrEricCarr Member
edited May 2016 in General questions
As a lot of us know, there is still a very noticeable lag when playing wav files in Android (HTC Ones, Dell tablets, etc.)

The delay makes apps feel very amateurish when testing on these devices compared to my iOS devices.

Is there a realistic date for fixing this on the roadmap? The past releases have been very exciting and cool but this seems a very core part of Gideros that needs to be addressed. How can I release an app on google play with a big delay on every sound?

I'm wondering if I should start working on a java workaround/plugin or wait it out.

Thanks,
Eric

Comments

  • piepie Member
    @EricCarr unfortunately with my skill set I don't know where to start to help you, but I believe that if you find how to address this issue the whole gideros community will be grateful.. at least I will :D
  • antixantix Member
    I'm using a lot of sounds in my current attempt at a game and I can't say that I've noticed the lag. Is it before the sound starts? Or is it when sounds repeat?
  • SinisterSoftSinisterSoft Maintainer
    edited May 2016 Accepted Answer
    There is a way to reduce the lag, but it involves changing the Android audio engine from OpenAl to OpenSL ES.

    https://source.android.com/devices/audio/latency_design.html

    I think @John26 is going to do this after he updates the documentation.

    It's one of the things you can vote for when donating btw. ;)
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • EricCarrEricCarr Member
    edited May 2016
    Thanks, @SinisterSoft. I may just donate and vote. :)

    I made a test program in Android studio using SoundPool that fared better, but I also saw some reports of bugs on different devices with it with particular Android versions. Fun stuff. I guess there is no easy win outside of OpenSL ES, which looks promising!

    Likes: SinisterSoft

    +1 -1 (+1 / -0 ) Share on Facebook
  • SinisterSoftSinisterSoft Maintainer
    So at least we know that changing from OpenAL will at least do some good.
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
Sign In or Register to comment.