Sound playing position and duration

Hi, for the soundtrack of my game I use 3 loopable tracks, and when the current playing track is 3 seconds from the end I fade out/in to the next track.
Is there a way to know the current playing position for a sound playing, and a way to check the length of the sound?
Alternatively, would tracking the playing position using Update be a reasonable workaround?

This is currently not possible, see issues:

Highly recommend going and upvoting those issues.

A hacky solution is to keep track of the time through update, just like you said. Disabling threaded audio might improve reliability of that hack but would potentially hurt performance.

1 Like

Highly recommend going and upvoting those issues.

Will do. Thanks. Implemented the hack and seems to work!

1 Like