Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

help me.. unity 5.0 i'm not want delay audio for Android Device

Discussion in 'Audio & Video' started by jik0101, Mar 6, 2015.

  1. jik0101

    jik0101

    Joined:
    Mar 6, 2015
    Posts:
    1
    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~~
     
  2. olix4242

    olix4242

    Joined:
    Jul 21, 2013
    Posts:
    1,962
    Android buffer latency, it's an common android problem, and it hasn't anything to do with unity.
     
  3. Ghopper21

    Ghopper21

    Joined:
    Aug 24, 2012
    Posts:
    170
    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.