sorry, i’m not speak english…
help me…
ver : unity 5.0
public AudioClip m_TouchEffect;
void Update ()
{
if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Began)
{
AudioSource.PlayClipAtPoint(m_TouchEffect, transform.position);
}
}
android device (Gelaxy note 2) … on touch began
0.2~0.3sce delay after play audio…
why…?;;
help~~
Android buffer latency, it’s an common android problem, and it hasn’t anything to do with unity.
Actually, this is BOTH an Android problem AND a Unity problem. Android audio latency has improved since the introduction of fast path audio in 2013, but it seems Unity hasn’t been updated to take advantage of this improved audio functionality yet. See this forum post.
Basic on my quick measurements, the native apps for Android are getting close to 100ms audio latency, while Unity adds around 200-300ms of additional audio latency. Unity can’t do anything about the underlying 100ms, but it certainly can and should fix the massive additional latency it is adding.