Hi,
I’m trying to do an audio effect and I need a way to reliably keep two Sound objects synced.
In the past, I used to use this script that relies on TimePosition, and it would reliably work every single time:
local Track1 = script.Parent:WaitForChild("Track1")
local Track2 = script.Parent:WaitForChild("Track2")
Track1:Play()
Track2:Play()
while wait() do
Track2.TimePosition = Track1.TimePosition
end
However, sometime early this year, I noticed that this stopped working properly, even in my old projects.
In that example, Track2 is the track always having its TimePosition set to that of Track1’s. Track2 now comes out sounding stuttery and glitchy, which again it didn’t used to do, ever, until early this year.
Here’s a video example. Around 10 seconds, my drum track (Track2) starts glitching out:
I’d LOVE for this to get fixed, and for the sound on Track2 to be smooth again.
Otherwise, if there’s a better way to script this that ensure both audio tracks are synced forever and 99.9% reliably, I’d love to learn!!
Expected behavior
If everything was working correctly, the Sound object having its TimePosition set to that of the primary Sound should be playing sound smoothly and not glitching/stuttering out.
A private message is associated with this bug report