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 AudioSource.time always 0

Discussion in 'Audio & Video' started by Kaiz0ku, Sep 23, 2019.

  1. Kaiz0ku

    Kaiz0ku

    Joined:
    Oct 28, 2014
    Posts:
    6
    Hello everyone!

    I am facing a small problem regarding the AudioSource. time value.
    During runtime I download/stream a .wav audio clip to the audio source and hit play.
    While everything runs smoothly(audio plays, I can pause, unpause etc..) the time & timeSamples are always 0.

    I need them to calculate the completition percentage of the audio.clip playing. Any ideas?