Hey all, I’m trying to rewind a Timeline that contains some audio, in a way that the audio loops seamlessly.
The setup:
A 15 seconds timeline with 2 tracks: one is a custom playable track, the other is an audio track.
The audio track has a 12 seconds clip, and I need to loop back at second 6 to second 3, or to 0.
What I do is that the MixerBehaviour of the custom track checks if its time is past the value (6), and if so, sets PlayableDirector.time
to the beginning of the loop (3 or 0).
It kinda works, but there’s a tiny hitch in the audio. Being this a musical game, I wanted to ask if there is something else I’m not considering that I need to do to ensure smooth audio playback.
PS: I have tried in a build, I have tried setting the PlayableDirector to DSP clock, but the hitch is still there.
Thanks!