- Home /
Android touch latency vs. audio playback
Greets - I'm developing a simple rhythm box on an Android tablet and am hitting a snag dealing with a huge latency - easily 200ms if not closer to 400ms, between a "Touch" on a guitexture, and the playback of an attached mp3 file.
The demo program was originally written to test as a standalone Win32 app with MouseDown's so the majority of (what is a dead simple app) appears fine.
The guitexture has an AudioListener attached, and the below script attached as well:
function Update()
{
for (var touch : Touch in Input.touches)
{
if(touch.phase == TouchPhase.Began && guiTexture.HitTest(touch.position))
{
audio.Play();
}
}
}
...priority of these listeners have been bumped up to 255, with effects bypassed. Any thoughts on how to make this detect faster? I can do this in a parallel development in B4A (basic4Android) and get minimal latency, but would prefer to build this in Unity for consistency purposes.
Thanks, Ted.
Have you found any solution, because I experienced the same issue..
Your answer
Follow this Question
Related Questions
GUITexture Button Help, Android touch 2 Answers
Disable gui texture in a different way? 0 Answers
Detect touch on a specific GUITexture 3 Answers
GUITexture and Touch Input 1 Answer
Touch Button for 4 animation 2 Answers