WebGL AudioSource.time inconsitent

When playing audio in our application AudioSource.time seems to return almost random results. Some times it will be accurate about the current time in the clip and others it will be seemingly outputting random numbers. Some things to note:

  • The audio clip is fully loaded
  • The clip is loaded as part of an asset bundle
  • More often then not the time is consistent when a clip is played the first time, but seems to break down once the audio repeats.
  • This isn’t reproducible in any other platform including the editor.

Is there something I can do to better keep track of the current time of a clip being played in WebGL?

Is this Unity 5.5? We fixed a bug recently, related to AudioSource.time: see bug tracker here.

Reproduced in Unity 5.5.2.

looks like we need a new bug report then.