Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Audio Audio latency in build but not in editor

Discussion in 'Audio & Video' started by km30, Nov 12, 2019.

  1. km30

    km30

    Joined:
    Jun 28, 2017
    Posts:
    5
    Hello,

    I am working on a project in which low audio latency is essential. I have managed to minimize audio latency sufficiently in the editor, but in the built version (windows), I'm detecting a small but unacceptable amount of latency.

    Does anyone know why this might be happening?

    Thanks
     
  2. sdochertymusic

    sdochertymusic

    Joined:
    Aug 13, 2019
    Posts:
    8
    You can manually set the sample buffer size in Unity through code as opposed to using it's "Best Performance/Best Latency Options" .... try that and set it to something you need. The buffer size must be a power of 2.