Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    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.