Search Unity

Audio [SOLVED] Audio play from Start() has audio.time ahead of Time.timeSinceLevelLoad

Discussion in 'Audio & Video' started by x4637x, Sep 19, 2017.

  1. x4637x

    x4637x

    Joined:
    May 9, 2017
    Posts:
    4
    Hi,

    I've encounter some wired issue about AudioSource playing an audio clip. I have an audio source that will play an audio clip after level was loaded. But when I check it's current playing track time using : AudioSource.timeSamples/AudioSource.clip.frequency, it tells me that the track time is ahead of Time.timeSinceLevelLoaded. I understand I've some small difference cause by frame time difference, but around 0.25s ahead of Time.timeSinceLevelLoaded is really strange. Here are a simple graph of how my audio playing components link to each others.

    Could anyone help me figure out what will possibly be the cause of this?
    Thanks!

    More detail about my issue is in => here