As a Roblox developer, it is currently too hard to reliably keep two Sound objects synchronized during playback.
I would like an engine feature that ensures 2 or more Sound objects are always in sync, and that they never desync or stutter, as desired.
In some of my projects, I need one audio track to match another track’s playback position in real time. For example, I might have a primary music track and a secondary track (like drums or another instrument layer) that needs to stay perfectly aligned with it.
In the past, I used to do this by repeatedly setting the secondary track’s TimePosition to match the primary track, which worked perfectly. But earlier last year, this stopped working. The secondary track now stutters or glitches when updated frequently, even in older projects.
Here’s a video example. I have this cool song that has two tracks, the music track and the lone drum track, playing at the same time. Around 10 seconds, my drum track (Track2) starts glitching out. This is because there’s no reliable way to make sure the two tracks are synced, and the only way I knew how that used to work was by always setting the TimePosition:
I would like to suggest a reliable way to keep two Sound objects perfectly in sync, whatever solution that may entail, without timing drift or audible glitches.
Some usecases may be:
- Music with multiple layers (drums, bass, vocals, etc.) that could fade in or out depending on gameplay intensity.
- Live concerts that allow for more audience interactivity by influencing the individual instruments or performances of the music
- Greater precision for rhythm games, as well as dynamic variation for missed/hit notes
- Dynamically switching or blending between alternate versions of a track
Layered music and interactive soundtracks are common in modern games, but right now, it’s currently too difficult to implement reliably on Roblox without a solid way to keep audio tracks in sync.
If this issue is addressed, it would improve my development experience because it would fix a frustrating audio glitch and unlock many possibilities for richer, more immersive sound design in Roblox experiences.