1. Anders Ruud
  2. love
  3. Issues


Issue #1236 open

Android Audio Delayed

created an issue

The audio in Android seems have some delay, which makes rhythm-based game in LOVE2D very hard to play. I'm currently making a rhythm-based game and the audio delay introduced in Android is unacceptable for my rhythm-based game.

Tested in Android Jelly Bean and Lollipop, both introduce audio delay. Tested in Windows and there's no audio delay. Tried to test it in Ubuntu under VM and there's audio delay issue too, but since I'm testing in VM, I can't confirm if the audio is also delayed in real Ubuntu installation.

Is there any workaround for this?

Comments (12)

  1. AuahDark reporter

    It's strange that there's also rhythm-based games which is installed in both phones (actually my game is based of that game) and there's no audio latency.

  2. AuahDark reporter

    Maybe.. Anyway that game uses OpenSL ES for it, while LOVE2D uses OpenAL. Is there any difference between those two? I'm start to think this is OpenAL problem.

  3. AuahDark reporter

    Ok after some google, changing device->NumUpdates in alcOpenDevice (file ALc.c) from 4 to 1 fixes the problem, but I don't know if there any other side effects caused by it.

  4. Raidho

    I don't think audio is the culprit. While it is latentious, far greater latency is in input, and it's in hardware level so there's nothing anyone can do about it. Samsung phones are one of the worst offenders in this category. You can verify this being the case by playing your game with sound off, only using visual beat cues.

    It goes without saying that if audio desync is your only issue then the whole problem is resolved by padding audio output.

  5. AuahDark reporter

    far greater latency is in input, and it's in hardware level so there's nothing anyone can do about it

    Actually input lag is okay (in fact both phones I used for testing has sensitive touchscreen, maybe just ~50ms delay). The problem is the audio, which destroys the song rhythm.

  6. Log in to comment