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 Is AudioSettings.dspTime fully thread safe?

Discussion in 'Audio & Video' started by Nifflas, Feb 3, 2018.

  1. Nifflas

    Nifflas

    Joined:
    Jun 13, 2013
    Posts:
    118
    My algorithmic music player runs in its own thread and interact with the dsp thread. Since reading a double isn't atomic I just want to make sure it's OK. I know AudioSettings.dspTime can safely be read in the main thread and dsp thread, but is it safe in other threads too?