I have been working on a Guitar Hero knockoff via C#/XNA that requires up to four audio tracks being played at a single time. On most (more than 50%) of the time I load up a song containing all 4 tracks, they all start and remain in sync for the whole song. Of course, there are instances where one or two of the tracks will start slightly later than the rest, which then requires a restart of the song.
I’m assuming this happens when the PC is under load prior to starting the 4 tracks. To combat this, I started the tracks as paused, slept the program for a second, then unpaused them all immediately after. Sadly, the problem still persists.
I can probably get around this with some hackey usage of set position, but I’d like to know if there is any snazzy way to ensure a set of audio streams will always remain in sync.
Thanks for reading!
- melonman67 asked 7 years ago
- You must login to post comments